原文: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