Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql cannot delete or update a parent row

# THIS SHOULD ONLY BE USED AS A LAST RESORT
SET FOREIGN_KEY_CHECKS=0; -- to disable them
SET FOREIGN_KEY_CHECKS=1; -- to re-enable them
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mysql #delete #update #parent #row
ADD COMMENT
Topic
Name
6+1 =