0
有人可以在這裏指導我,爲什麼我得到這個錯誤?我該如何解決?爲什麼我不能像這樣在MySql上使用--position?
#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 '--position 15 87, stu_id char(9) PRIMARY KEY, stu_fname char(20) ' at line 1
以下查詢我試圖運行;
CREATE TABLE IF NOT EXISTS STid(- - position1587,
stu_idchar(9) PRIMARY KEY ,
stu_fnamechar(20) NOT NULL ,
stu_lnamechar(20) NOT NULL
);
信息:
[email protected]:~$ mysql --version
mysql Ver 14.14 Distrib 5.1.49, for debian-linux-gnu (i686) using readline 6.1