1

I am creating a table inserting reminders of my reminder application but while creating the table insert_reminder I am getting error for the DATE column. I tried to figure out if I had written any keyword wrong or not but everything was right.

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));

This is the table I am tring to create.

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

And this is the error I am getting.

Barefaced Bear
  • 688
  • 1
  • 9
  • 30

0 Answers0