create table show
(id int primary key,
name varchar(50) not null,
money double not null,
explain varchar(50) not null,
img varchar(20) not null
);
实在没查出错误 提示错误如下
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 to use near 'show
(id int primary key,
name varchar(50) not null,
money double not null,
expl' at line 1
)
(id int primary key,
name varchar(50) not null,
money double not null,
explain varchar(50) not null,
img varchar(20) not null
);
实在没查出错误 提示错误如下
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 to use near 'show
(id int primary key,
name varchar(50) not null,
money double not null,
expl' at line 1
)
解决方案 »
- 为什么mysql设置字符编码为utf8的时候有乱码,设置gbk的时候又正常
- 熟悉MYSQL的进来坐坐吧,略备清茶一杯
- mysql 两表排重
- sql函数求助
- mysql date类型的列怎样才能插入空数据?
- 安装问题,could not start the service Mysql.error:0 100分在线等
- 如何判断表是否存在?
- 怎麼不能連接到 Linux 下的 Mysql( 只能用Localhost )
- 关于使用ADO操作mysql数据库的问题,程序运行一天后操作数据库就失败!
- MySQL Cluster初步学习资料整理--安装部署新特性性能测试等
- mysql执行存储过程文件有问题
- 怎么解决数据库冗余?
(id int primary key,
name varchar(50) not null,
money double not null,
explain varchar(50) not null,
img varchar(20) not null
);注意SHOW应该是保留字。加上反引号
(id int primary key,
name varchar(50) not null,
money double not null,
`explain` varchar(50) not null,
img varchar(20) not null
);
explain 也是mysql中的保留字。需要转义。建议你还是不要用保留字命名。因为你的后续操作都需要转义。
(id int primary key,
name varchar(50) not null,
money double not null,
`explain` varchar(50) not null,
img varchar(20) not null
);各种关键字 呵呵