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
What is the use of mysqli_num_rows?
What is save point in mysql?
Explain the different types of mysql joins.
What are the ways in which you can retrieve data in the result set of mysql using php?
How do I run mysql?
How to create table with same structure of student table in mysql?
What is pragma exception?
Why is it called mysql?
How can you export the table as an xml file in mysql?
How do I clear the command in mysql?
I want to insert userid of a customer,order time,etc in a table called ordermaster with orderid as primary key.Same time the product codes and required quantities (a1,2 and a2 4 and so on)inserted in another table orderdetails with same orderid reference.How the code will be in JSP using MySQL?
What are the functions in mysql?
What is the use of i-am-a-dummy flag in mysql?
Why do gaps in sequences occur?
How MySQL Optimizes DISTINCT?