簡體   English   中英

無法創建表-無法添加外鍵約束

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM