Reputation: 329
I have this schema
when i'm trying to add a new isp_share
record I get this error
although isp table has a record with id=3
what could be the problem?
Upvotes: 1
Views: 373
Reputation: 26804
From documentation http://dev.mysql.com/doc/refman/5.0/en/create-table-foreign-keys.html
The parent and child tables must use the same storage engine..Corresponding columns in the foreign key and the referenced key must have similar data types
Also do a check of the other tables.
Upvotes: 2