im getting the following error when trying to populate my products table
1452 - Cannot add or update a child row: a foreign key constraint fails (computer_wholesale
.products
, CONSTRAINT products_ibfk_1
FOREIGN KEY (supp_id
) REFERENCES suppliers
(supp_id
))
this is the statement im using to populate the table
INSERT INTO products
(prod_id,prod_name,price,on_hand,supp_id)
Values
("DTHP7710","HP desktop","499.99","5","kbc355"),
("dtcp2109","cp desktop","479.99","2","adt217"),
("dtcp2149","cp desktop","799.99","2","adt217"),
("ltpbv060","packbell mz35-v060","349.99","3","cps533"),
("ltcpc504","cp c504ea","429.99","3","adt217"),
("lttaa100","toshiba a100","492.99","4","cps533"),
("LTPBMZ36","PackBell MZ36-T019","549.99","6","CPS533
"),
("LTTA0338","Toshiba A100-338","599.99","5","FCL162
"),
("DJHP1280","HP Deskjet 1280","172.92","5","KBC355
"),
("DJEPR180","Epson Stylus R1800","318.89","3","FCL162"),
("A1HPC318","HP Photosmart C3180","34.99","8","KBC355
"),
("A1HPF380","HP Deskjet F380","39.99","8","KBC355
"),
("A1LX5470","Lexmark X5470","49.99","4","FCL162"),
("A1EP6050","Epson Stylus DX6050","59.99","4","FCL162
");
if anyone could tell me what im doing wrong or give a solution that would fix the proble it would be greatly appreciated.
Thanks