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