我正在创建一个插入提醒应用程序提醒的表,但是在创建表insert_reminder
时遇到DATE
列错误。我试图弄清楚我是否输入了错误的关键字,但一切都正确。
mysql> CREATE TABLE set_reminder(
-> SID int(10) primary key auto_increment,-> UID int(10) references registration(UID) not null,-> "DATE" date not null,-> SUBJECT varchar(10) not null,-> DESCRIPTION varchar(100) not null,-> CONTact varchar(60) not null,-> RECUR_NEXT int(2));
这是我要创建的表。
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 'not null,"DATE" date not null,SUBJECT varchar(10) not null,DESCRIPTION varcha' at line 3
这是我得到的错误。