MySQL Foreign Constraint ON DELETE CASCADE -
i want know if implemented right or if other way around.
so have 3 tables:
tableparent
, tablechild
, anothertable
tableparent
has pk called id
tablechild
, anothertable
has pk called id
fk constraint tableparent.id
, has on delete cascade
i modeled thinking if delete row in tableparent
, every row in tablechild
, anothertable
auto deleted.
does works way? (using mysql, engine innodb)
was going post in comment, comment button not showing up.
check out quesion/answer. think has need , more on issue.
mysql foreign key constraints, cascade delete
i retype all, seems redundent.
Comments
Post a Comment