原文:ERROR 1822 (HY000): Failed to add the foreign key constraint. Missing index for constraint 'orderite

ERROR HY : Failed to add the foreign key constraint. Missing index for constraint orderitem ibfk in the referenced table orders MySQL报这个错时去检查外键设置 这个外键是不是另外一个表的主键 设置外键的时候需要注意以下几点: 外键是用于两个表的数据之间建立连接,可以是 ...

2020-09-05 02:07 0 1049 推荐指数:

查看详情

Cannot add foreign key constraint 错误

第一,请检查数据类型是否一致 第二,请检查数据精度是否一致 第三,请检查存储引擎是否一致 ...

Sun Sep 09 05:09:00 CST 2018 0 971
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM