[英]Cannot create table - Cannot add foreign key constraint
我有一個奇怪的案例:它的工作原理是:
Create table `testasd`(
`asd` int(10) NOT NULL,
primary key (`asd`)
)
但這不起作用:
Create table `test1`(
`asd` int(10) NOT NULL,
primary key (`asd`)
)
無法添加外鍵約束
mysql返回的錯誤有誤導性
要查找特定錯誤,請運行以下命令:
顯示引擎的INNODB狀態;
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.