CREATE TABLE conversationlog(
bot TINYINT( 3 ) UNSIGNED NOT NULL DEFAULT '0',
id INT( 11 ) NOT NULL AUTO_INCREMENT ,
input TEXT,
response TEXT,
uid VARCHAR( 255 ) DEFAULT NULL ,
enteredtime TIMESTAMP( 14 ) NOT NULL ,
PRIMARY KEY ( id ) ,
KEY botid( bot )
) ENGINE = MYISAM ;
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 ‘(14) NOT NULL, PRIMARY KEY (id), KEY botid (bot) )
ENGINE=MyISAM’ at l ine 7
written this SQL query to create a conversation log, I don’t know why is the error coming. Please rectify.
Don’t pass value parameter in
TIMESTAMP. Instead of:use this: