Hi,
Can anyone suggest why this query won't execute?
I keep getting this error:
#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 'desc varchar(255) , time int(10) DEFAULT '0' , width int(10) DEFAULT '' at line 5
I've tried working it out, but can't see why it won't work
TIA
Andy
Can anyone suggest why this query won't execute?
Code:
CREATE TABLE games (
id int(11) auto_increment,
nameid char(255),
name char(255) ,
desc char(255) ,
time int(10) DEFAULT '0' ,
width int(10) DEFAULT '0' ,
height int(10) DEFAULT '0' ,
cat varchar(255) ,
rating decimal(3,2) DEFAULT '0.00' ,
type enum('SWF','extlink','DCR','CustomCode') DEFAULT 'SWF' ,
authorsite varchar(255) ,
authorname varchar(255) ,
gameurl varchar(255) ,
code text ,
playcount int(10) DEFAULT '0' ,
weeklyplays int(10) DEFAULT '0' ,
flags varchar(255) ,
instructions text ,
keywords varchar(255) ,
disphtml enum('Config','No','Yes') DEFAULT 'Config' ,
disphtmlcode text ,
order int(10) DEFAULT '0' ,
active enum('Yes','No') DEFAULT 'Yes' ,
PRIMARY KEY (id)
);
I keep getting this error:
#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 'desc varchar(255) , time int(10) DEFAULT '0' , width int(10) DEFAULT '' at line 5
I've tried working it out, but can't see why it won't work
TIA
Andy