MySQL with PHP error -
my database cannot updated , giving error. plz help
cannot add or update child row: foreign key constraint fails (`arasdb`.`saledetail`, constraint `fk_saledetail_1` foreign key (`saleid`) references `sale` (`saleid`) on delete cascade on update cascade)
which row trying update, not exist in master table, if want still update row set foreign_key_checks=0 , again 1. should correct data.
Comments
Post a Comment