【MySQL错误 #1452】 - Cannot add or update a child row: a foreign key constraint fails... 原因及解决方法

在这里插入图片描述
错误原因:添加外键失败

解决方法:删除外键约束,再插入数据。

猜你喜欢

转载自blog.csdn.net/ijwwio/article/details/106418648