1
CREATE TABLE IF Not EXISTS `conversation` (
`c_id` int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
`user_one` int(11) NOT NULL,
`user_two` int(11) NOT NULL,
`ip` varchar(30) DEFAULT NULL,
`time` int(11) DEFAULT NULL,
FOREIGN KEY (user_one) REFERENCES users(user_id),
FOREIGN KEY (user_two) REFERENCES users(user_id)
);
這是我的SQL查詢。我收到此錯誤SQL使用外鍵獲取錯誤
1215 - 不可能D'ajouter德contraintes D'指數externe
http://stackoverflow.com/questions/26260425/phpmyadmin-mysql-foreign-key –
你能幫我創建這張表,因爲你提供的鏈接已經給出瞭解決方案來添加UNSIGNED,但這不起作用 – uniqueNt