-4
我不斷收到創建表的「錯誤150」試圖運行此查詢時:不能與外鍵
CREATE TABLE `NewTable` (
`ID` int NULL AUTO_INCREMENT ,
`Entry_ID` int NULL ,
`Content` varchar(255) NULL ,
`Type` varchar(255) NULL ,
PRIMARY KEY (`ID`),
CONSTRAINT `Entry_ID` FOREIGN KEY (`Entry_ID`) REFERENCES `ENTRIES` (`EID`),
CONSTRAINT `Content` FOREIGN KEY (`Content`) REFERENCES `MEDIA` (`CONTENT`),
CONSTRAINT `Type` FOREIGN KEY (`Type`) REFERENCES `MEDIA` (`CONTENT_TYPE`)
)
;
我希望得到任何幫助,謝謝!
MySQL錯誤代碼150:錯誤地形成的外鍵約束 –
INNODB:http://stackoverflow.com/questions/160233/what-does-mysql-error-1025-hy000- error-on-rename-of-foo-errorno-150-me#179501 –
http://stackoverflow.com/questions/825362/mysql-error-150-foreign-keys – Nanda