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
SQL is not case sensitive. DELETE is the same as delete. State Whether True or False?
How to find second highest salary from a table?
What are the types of queries?
How many triggers are possible in mysql?
How do I create a stored procedure in mysql?
What is 'mysqladmin' in mysql?
How to convert character strings to dates?
What is mysql workbench used for?
Is mysql written in c?
How do we use % when performing a search query?
Is mysql free for enterprise?
What is dblink?
how can you test for null values in a database? : Mysql dba
What does a TIMESTAMP do on UPDATE CURRENT_TIMESTAMP data type?
What are stored procedures and functions?