mysql foreign key constraint false code example Example 1: foreign key set 0 SET FOREIGN_KEY_CHECKS=0; Example 2: disableforiegn key check SET FOREIGN_KEY_CHECKS=0;