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 page is licensed: CC BY-SA / Gnu FDL

Last updated

Was this helpful?