I'm currently using phpMyAdmin to test my database by running queries but upon creating this table I get an error.
SQL-query:
CREATE TABLE Notification (
Notification_ID INT(4) NOT NULL AUTO_INCREMENT ,
Person_ID INT(4) NOT NULL ,
NotificationType_ID INT(4) NOT NULL ,
NotificationSubType_ID INT(4) NOT NULL ,
Notification_Details TEXT(250) NOT NULL ,
Notification_Date DATE(12) NOT NULL ,
Target_Date DATE(12) NOT NULL ,
Status_Type VARCHAR(32) NOT NULL ,
PRIMARY KEY (Notification_ID)
) TYPE = InnoDB
MySQL said:
#1064 - 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 '(12) NOT NULL, `Target_Date` DATE(12) NOT NULL, `Status_Type` V
Any ideas why??