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
Can we write pl sql mysql?
What happens if you no create privilege in a database?
How can you validate emails using a single query?
How can we get total number of records by query in mysql?
Is pdo faster than mysqli?
What is a scalar function?
How do you concatenate strings in mysql?
Can I use mariadb instead of mysql?
What is new mysqli?
What is the use of mysqli_num_rows?
Can we store images in mysql database?
What is the difference between mysql_fetch_assoc and mysql_fetch_array?
How to create trigger in mysql workbench?
What are the disadvantages of stored procedures?
What is the return type of mysqli_query?