[Mysql] :Cannot add or update a child row:a foreign key constraint fails

mysql 数据库维护数据时报错:

有外键数据依赖。要添加上才可以。找吧。
设置的外键和对应的另一个表的主键值不匹配。
把依赖的外键的数据添加上就可以了。

发布了1295 篇原创文章 · 获赞 170 · 访问量 398万+

猜你喜欢

转载自blog.csdn.net/wide288/article/details/103566028