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

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -