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

Popular posts from this blog

c# - Pausing a storyboard on TabItem mouse over -

erlang - Saving a digraph to mnesia is hindered because of its side-effects -

mongodb - Struggling to get ordered results from the last retrieved article, given array of elements to search in -