On MYSQL database version 5.5, I have tables with following foreign key constraint:
CONSTRAINT fk_parent_child_id
FOREIGN KEY (child_id
) REFERENCES parent
(id
) ON DELETE NO ACTION ON UPDATE NO ACTION
It has been noticed that "child" table has some records that are not in "parent" table (and error 1451 starts to appear)
Note that this constraint is there since the creation of both tables Also, (SET FOREIGN_KEY_CHECKS = 0;) was not used while execution of any delete operations
Is there any clue for the cause of the inconsistency of data?
Thanks