Mysql - How to temporarily disable a foreign key constraint in MySQL?

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

SET FOREIGN_KEY_CHECKS=0;
SET FOREIGN_KEY_CHECKS=1;