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
How do I tune a mysql query?
What is sharding in mysql?
How to get data from mysql in php?
How to insert html code into mysql database using php?
What is mysql uuid?
How can you handle the –secure-file-priv in mysql?
How do I stop a mysql service?
How do I delete a row in mysql?
What is a user defined variable?
Is mysql good for big data?
What is myisamchk?
What is mysqli_select_db?
What is the difference between the LIKE and REGEXP operators?
How can I create a database in mysql?
How to store values to array from mysql database in php?