-2
IM當我運行此查詢MySQL的語法錯誤在創建表查詢
CREATE TABLE `teacher` (
'id' int(11) NOT NULL,
'name' varchar(45) NOT NULL,
'gender' ENUM('F','M') NOT NULL,
'department' varchar(32) NOT NULL,
PRIMARY KEY (`id`),
FOREIGN KEY ('department') REFERENCES
departments('name')
);
#1064 - You have an error in your SQL syntax;
check the manual that corresponds to your MySQL server
version for the right syntax to use near
''id' int(11) NOT NULL, 'name' varchar(45) NOT NULL, 'gender' ENUM('F','M') N'
at line 2
這個錯誤顯示出來
反引號和引號是不同的東西 – Strawberry
如何笨我的 三江源配合<3 – mask477