原文:MySQL设置外键报错 #1452 - Cannot add or update a child row: a foreign key constraint fails 解决方法

MySQL数据库,当我尝试在A表中设置B表的主键为外键时,报出错误: Cannot add or update a child row: a foreign key constraint fails 于是去搜索了一下 Cannot add or update a child row: a foreign key constraint fails 的含义与解决方法,根据这篇博文去排查了报错原因,排 ...

2020-03-21 17:31 0 2130 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM