Ondelete clause is specified with
a.)Drop table
b.)Delete command
c.)Create table
d.)Select command

Answer Posted / manish

create command

Ex.
CREATE TABLE mailing_group (
id int unsigned NOT NULL AUTO_INCREMENT ,
mailing_id int unsigned NOT NULL,
group_type enum('Include', 'Exclude'),
entity_table varchar(64) NOT NULL,
entity_id int unsigned NOT NULL,
PRIMARY KEY ( id ),
CONSTRAINT FK_civicrm_mailing_group_mailing_id FOREIGN
KEY (mailing_id) REFERENCES civicrm_mailing(id) ON DELETE
CASCADE
) ENGINE=MyISAM DEFAULT CHARACTER SET utf8 COLLATE
utf8_unicode_ci ;

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

1)for snapshot replication which agents used? 2)for Transcation replication which agents used? 3)for merge replciation which agents used?

1553


What is regex in mysql?

533


How to write date and time literals?

550


How MySQL Optimizes DISTINCT?

617


What is the data type for file in mysql?

548






What is clob datatype?

480


Is blocked because of many connection errors mysql?

437


How to determine the location of the data directory?

498


Write a query to fetch duplicate records from a table using mysql?

501


What is ndb in mysql?

523


What is dump in mysql?

476


What are the functions in mysql?

497


How to get the number of rows selected or affected by a sql statement?

509


What is mysql data directory?

528


How to delete an existing column in a table?

489