ERROR 1452: Cannot add or update a child row: a foreign key constraint fails
MySQL supports foreign keys, which permit cross-referencing related data across tables, and foreign key constraints, which help keep the related data consistent. A foreign key relationship involves a parent table that holds the initial...