当你遇到像
这样的描述性错误时,一定要爱您的SQL语法有错误;检查手册 对应于您的MySQL服务器版本以获得正确的语法
这里的任何人都可以让我更多地了解我出错的地方
CREATE TABLE wp_nas_coffees (id MEDIUMINT NOT NULL AUTO_INCREMENT PRIMARY KEY, name VARCHAR (100), email VARCHAR (100), company VARCHAR (100), dtime TIMESTAMP DEFAULT CURRENT_TIMESTAMP, order VARCHAR (20));
???
答案 0 :(得分:1)
命令是Mysql reserver word
CREATE TABLE wp_nas_coffees (
id MEDIUMINT NOT NULL AUTO_INCREMENT PRIMARY KEY,
name VARCHAR (100),
email VARCHAR (100),
company VARCHAR (100),
dtime TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
tbl_order VARCHAR (20)
);
参见MySQL关键字/保留字 https://dev.mysql.com/doc/refman/5.6/en/keywords.html