mysql - Error in SQL Syntax. What would be the proper solution or right syntax to use for a successful result? -
mysql said:
#1064 - have error in sql syntax; check manual corresponds mysql server version right syntax use near '(14) not null ) engine=myisam' @ line 23
create table `activity_points` ( `fk_user_id` int( 10 ) not null default '0', `date` date not null default '0000-00-00', `points` int( 10 ) not null default '0', `lastupdate` timestamp( 14 ) not null ) engine = myisam ;
timestamp shouldn't have length
create table `activity_points` ( `fk_user_id` int( 10 ) not null default '0', `date` date not null default '0000-00-00', `points` int( 10 ) not null default '0', `lastupdate` timestamp not null ) engine = myisam ;
Comments
Post a Comment