Good day,
I have created a MySQL database wuth the following tables and relationships:
http://www.libromania.cl/dsstgo/modelv7.jpg
Using “load data local infile” instructions, I have loaded data in Schools, Classes and Books.
When try to do it for Lists table, the following error message is generated:
#1452 - Cannot add or update a child row: a foreign key constraint fails (libroman_2012
.Lists
, CONSTRAINT Lists_ibfk_1
FOREIGN KEY (ClassID
) REFERENCES Classes
(ClassID
))
Any help would be very appreciated.
Thanks a lot.