我在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