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

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -