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 can we get the number of rows affected by query?
How do I run mysql from command line?
What does mysql_query return?
What are mysql functions?
What's the latest version of mysql?
How do I know if mysql is installed on windows?
How do I start mysql client?
What is mysql optimization?
What is pragma serially_reusable and why is it used?
What is mysql connector used for?
How can you calculate the sum of any column of a table?
How database are managed?
How do you backup a database in mysql?
What is insert query in mysql?
What are the reasons for selecting lamp (linux, apache, mysql, php) instead of combination of other software programs, servers and operating systems?