2

If I do this

ALTER TABLE `table`
ADD CONSTRAINT `FK_table` 
FOREIGN KEY (`IDtable`) 
REFERENCES `table2` (`ID`) 
ON UPDATE CASCADE;

What is default behavior for ON DELETE? Is it restrict, cascade, set null?

4

1 回答 1

1

If you don't set an action, the default will be NO ACTION.

于 2013-07-13T11:59:07.543 回答