View Single Post
Old 24-08-2008, 12:40 PM   #1   [permalink]
bmn
Junior Member
 
Join Date: 3 Jun 2006
Posts: 7
Help - Error #1064- You have an error in your SQL syntax

Hi

Spec :
MySql 4.1 (I run this query on 5.x as well)
I am using Wamp on my own computer

I tried to run this query :
Code:
CREATE TABLE `phpbb_mps` (
`mps_id` INT( 11 ) NOT NULL AUTO_INCREMENT ,
`page_title` VARCHAR( 150 ) NOT NULL ,
`about` TEXT NOT NULL ,
`meet` TEXT NOT NULL ,
`self_title` VARCHAR( 255 ) NOT NULL ,
`sex` TINYINT( 1 ) NOT NULL ,
`mps_quiz_results` TEXT NOT NULL ,
`song` TEXT NOT NULL ,
`video` TEXT NOT NULL ,
`music_code` TEXT NOT NULL ,
`music_auto_start` TINYINT( 2 ) NOT NULL ,
`mps_views` INT( 11 ) NOT NULL DEFAULT '0' ,
`mps_home_page` TINYINT( 1 ) NOT NULL DEFAULT '0' ,
`myspace_url` VARCHAR( 50 ) NOT NULL ,
`mps_comments_display` TINYINT( 2 ) NOT NULL DEFAULT '10' ,
`mps_friends_display` TINYINT( 2 ) NOT NULL DEFAULT '8' ,
`private_profile` TINYINT( 1 ) NOT NULL DEFAULT '0' ,
`mps_report_profile` TINYINT( 1 ) NOT NULL DEFAULT '0' ,
`mps_profile_warnings` TINYINT( 4 ) NOT NULL DEFAULT '0' ,
`mps_short_comment_length` INT( 3 ) NOT NULL DEFAULT '150' ,
`header_option` INT( 2 ) NOT NULL DEFAULT '0' ,
  KEY  (`myspace_url`),
PRIMARY KEY ( `mps_id` )
then I would get this message 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 '' at line 24

Could you help me?
thanks
bmn is offline   Reply With Quote