Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

child row: a foreign key constraint fails

I discovered another weird case: If you accidentally create a foreign key from an InnoDB table to a MyISAM table, MySQL throws this error at time of insert even if the data is otherwise valid.
 
PREVIOUS NEXT
Tagged: #child #foreign #key #constraint #fails
ADD COMMENT
Topic
Name
5+2 =