Error 1452: Cannot add or update a child row: a foreign key constraint fails
Error Code
SQLSTATE
Error
Description
1452
23000
ER_NO_REFERENCED_ROW_2
Cannot add or update a child row: a foreign key constraint fails (%s)
Possible Causes and Solutions
This article doesn't currently contain any content. You can help!
This page is licensed: CC BY-SA / Gnu FDL
PreviousError 1451: Cannot delete or update a parent row: a foreign key constraint failsNextError 1453: Variable must be quoted with ..., or renamed
Last updated
Was this helpful?