Friday, December 16, 2016

How to temporarily disable a foreign key constraint in MySQL ?

Try DISABLE KEYS or
SET FOREIGN_KEY_CHECKS=0;
make sure to
SET FOREIGN_KEY_CHECKS=1;
after.

Source : http://stackoverflow.com/questions/15501673/how-to-temporarily-disable-a-foreign-key-constraint-in-mysql

No comments:

Post a Comment