我試圖創建一個表,但它給我這個錯誤:ERROR 1064(42000),創建MySQL表時
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax touse near ' INT NOT NULL AUTO_INCREMENT
這裏是我的代碼:
CREATE TABLE bowling_scores (
PlayerID, INT NOT NULL AUTO_INCREMENT
, LName VARCHAR(100) NOT NULL
, FName VARCHAR(100) NOT NULL
, Game1 INT NULL
, Game2 INT NULL
, Game3 INT NULL
, Game4 INT NULL
, PRIMARY KEY (PlayerID)
);
嘗試改變'PlayerID,''到PlayerID' – Ata
看看在['CREATE TABLE']的語法(https://dev.mysql.com/doc/ refman/5.7/en/create-table.html)聲明。 – axiac