Search This Blog

Sunday, November 18, 2018

Enable/disable a foreign key constraint in MySQL

SET FOREIGN_KEY_CHECKS=0;

SET FOREIGN_KEY_CHECKS=1;