A foreign key constraint fails

后端 未结 3 1117
抹茶落季
抹茶落季 2021-01-06 23:18

I am relatively new in php and mysql.The problem that i am facing while i inserting value in my leave table.My leave table containing following co

3条回答
  •  无人及你
    2021-01-06 23:46

    You can put

    SET FOREIGN_KEY_CHECKS=0;
    

    and run your query. Once you are done again set it back to 1 by

    SET FOREIGN_KEY_CHECKS=1;
    

提交回复
热议问题