foreign key constraint with 0 value code example Example: foreign key set 0 SET FOREIGN_KEY_CHECKS=0;