Working with foreigh keys - cannot insert
Posted
by Industrial
on Stack Overflow
See other posts from Stack Overflow
or by Industrial
Published on 2010-03-28T11:56:05Z
Indexed on
2010/03/28
12:03 UTC
Read the original article
Hit count: 382
Hi everyone!
Doing my first tryouts with foreign keys in a mySQL database and are trying to do a insert, that fails for this reason: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails
Does this mean that foreign keys restrict INSERTS as well as DELETES and/or UPDATES on each table that is enforced with foreign keys relations?
Thanks!
© Stack Overflow or respective owner