Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

ERROR 1451: 1451: Cannot delete or update a parent row: a foreign key constraint fails

SET FOREIGN_KEY_CHECKS=0; -- to disable them
SET FOREIGN_KEY_CHECKS=1; -- to re-enable them
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #ERROR #Cannot #delete #update #parent #foreign #key #constraint #fails
ADD COMMENT
Topic
Name
9+8 =