mysql 在删除数据出现Cannot delete or update a parent row: a foreign key constraint fails 这个该如何解决

 mysql 在删除数据出现Cannot delete or update a parent row: a foreign key constraint fails  这个该如何解决

可以这样解决:

SET FOREIGN_KEY_CHECKS = 0; 执行这条语句,

然后再删便可。

posted on 2014-10-31 12:54  学无止境2023  阅读(739)  评论(0编辑  收藏  举报

导航