我在Debian上使用5.5.46服务器。与MySQL错误1064(42000)
我想知道什么是错的语法如下,我发现了以下错误:
ERROR 1064 (42000) at line 5: 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 'desc VARCHAR(10) UNSIGNED NOT NULL, hora VARCHAR(5) UNSIGNED NOT NULL, ' at line 3
drop database loteria;
create database loteria;
use loteria;
create table loteria (
id SMALLINT(3) UNSIGNED NOT NULL AUTO_INCREMENT,
desc VARCHAR(10) UNSIGNED NOT NULL,
hora VARCHAR(5) UNSIGNED NOT NULL,
primary key(id)
);
我无法看到错误,可以请你指导我来标识它。
谢谢你的时间。
desc是一个保留字 – Hogan