我想在数据库中创建一个新的表。
mysql> create table 'lps_inventory' (eartag int(11) not null,
-> bulk tinyint(4),
-> hpt int(11),
-> idbox varchar(30),
-> location char(10),
-> comnt varchar(40));我犯了这个错误
错误1064 (42000):您的SQL语法有错误;请检查与您的MySQL服务器版本对应的手册,以获得在“creat table”lps_inventory附近使用的正确语法(eartag int(11) not null,bulk tinyint(4),hpt int(1‘)在第1行。
我该怎么解决这个问题?
发布于 2016-02-16 03:05:39
quote should be `, not ', or do it without quote.发布于 2016-02-16 03:14:30
试试这个:
create table lps_inventory (eartag int(11) not null,
bulk tinyint(4),
hpt int(11),
idbox varchar(30),
location char(10),
comnt varchar(40));https://stackoverflow.com/questions/35422919
复制相似问题