Cannot add or update a child row: a foreign key constraint fails 解决办法
2016-12-28 13:34
555 查看
原因:
设置的外键和对应的另一个表的主键值不匹配。
解决方法:
找出不匹配的值修改。
或者清空两表数据。
设置的外键和对应的另一个表的主键值不匹配。
解决方法:
找出不匹配的值修改。
或者清空两表数据。
相关文章推荐
- Error 'Cannot add or update a child row: a foreign key constraint fails
- Mysql error 1452 - Cannot add or update a child row: a foreign key constraint fails
- 1452, 'Cannot add or update a child row: a foreign key constraint fails
- django admin报错IntegrityError:'Cannot add or update a child row: a foreign key constraint fails'
- Mysql error 1452 - Cannot add or update a child row: a foreign key constraint fails
- Cannot delete or update a parent row: a foreign key constraint fails 问题的解决办法
- Cannot add or update a child row: a foreign key constraint fails
- cannot add or update a child row: a foreign key constraint fails
- mysql删除有外链索引数据,Cannot delete or update a parent row: a foreign key constraint fails 问题的解决办法
- 刷新数据库总是报错:不能增加或者更新约束, Cannot add or update a child row: a foreign key constraint fails
- mysql添加外键失败:sql 1452 Cannot add or update a child row:a foreign key constraint fails
- MySql外键添加失败:java.ql.SQLException: Cannot add or update a child row: a foreign key constraint fails
- #1451 - Cannot delete or update a parent row: a foreign key constraint fails 问题的解决办法
- Mysql error 1452 - Cannot add or update a child row: a foreign key constraint fails
- Cannot add or update a child row: a foreign key constraint fails (`mysql`.`ordermx`, CONSTRAINT `kf
- 解决1452- Cannot add or update a child rowa foreign key constraint fails问题
- error:Cannot add or update a child row: a foreign key constraint fails (`xx库`.`xx表`,
- Cannot add or update a child row: a foreign key constraint fails 无法添加外键
- 【转】 #1451 - Cannot delete or update a parent row: a foreign key constraint fails 问题的解决办法
- [Mysql] 添加外键失败:Cannot add or update a child row:a foreign key constraint fails