rondog Posted April 22, 2008 Share Posted April 22, 2008 I received a bunch of sql files that I should just be able to copy and paste into a query window, but im getting this error: /* SQL Error: 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 '"ssp_images" ( "id" int(11) NOT NULL auto_increment */ Here is my sql file: CREATE TABLE "ssp_images" ( "id" int(11) NOT NULL auto_increment, "aid" int(11) default NULL, "title" varchar(255) default NULL, "src" varchar(255) default NULL, "caption" text, "link" text, "active" tinyint(1) NOT NULL default '1', "seq" int(4) NOT NULL default '999', "pause" int(4) NOT NULL default '0', "target" tinyint(1) NOT NULL default '0', "updated_on" timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, "created_on" timestamp NOT NULL default '0000-00-00 00:00:00', PRIMARY KEY ("id") ) AUTO_INCREMENT=5; I cant spot the error..anyone know? Link to comment https://forums.phpfreaks.com/topic/102248-solved-syntax-error/ Share on other sites More sharing options...
DarkWater Posted April 22, 2008 Share Posted April 22, 2008 Take the quotes off the table and column names. Link to comment https://forums.phpfreaks.com/topic/102248-solved-syntax-error/#findComment-523530 Share on other sites More sharing options...
rondog Posted April 22, 2008 Author Share Posted April 22, 2008 Take the quotes off the table and column names. sweet thanks..worked Link to comment https://forums.phpfreaks.com/topic/102248-solved-syntax-error/#findComment-523535 Share on other sites More sharing options...
DarkWater Posted April 22, 2008 Share Posted April 22, 2008 Any time. Link to comment https://forums.phpfreaks.com/topic/102248-solved-syntax-error/#findComment-523536 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.