MySQL: can't insert a record because a foreign key issue -


i have schema enter image description here

when i'm trying add new isp_share record error

enter image description here

although isp table has record id=3

enter image description here

what problem?

from documentation http://dev.mysql.com/doc/refman/5.0/en/create-table-foreign-keys.html

the parent , child tables must use same storage engine..corresponding columns in foreign key , referenced key must have similar data types

also check of other tables.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -