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

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -