0
点赞
收藏
分享

微信扫一扫

Cannot delete or update a parent row: a foreign key constraint fails

Cannot delete or update a parent row: a foreign key constraint fails




只能在DOS下启动MySql,运行sql语句



关闭外键检测



SET FOREIGN_KEY_CHECKS = 0;



执行操作




SET FOREIGN_KEY_CHECKS = 1;




其他:



关闭唯一性校验



set unique_checks=0;



set unique_checks=1;


举报

相关推荐

0 条评论