Jump to content

SQL Import File Error


Jr0x

Recommended Posts

Hi,

 

I have problem while importing sql file into my database. I got the sql file from the server and i have to import it to my local pc.

 

MySQL client version: 5.0.33

 

When i tries to import, it will gives me this error.

 

Error

 

SQL query:

 

#

# Table structure for table '2222881302_reply'

#

CREATE TABLE 2222881302_reply(

id int( 10 ) unsigned NOT NULL AUTO_INCREMENT ,

mobile decimal( 11, 0 ) NOT NULL default '0',

gate int( 5 ) NOT NULL default '0',

message varchar( 254 ) NOT NULL default '',

time datetime NOT NULL default '0000-00-00 00:00:00',

reply enum( 'Y', 'N' ) NOT NULL default 'N',

reply_msg text NOT NULL ,

reply_time datetime NOT NULL default '0000-00-00 00:00:00',

agent varchar( 20 ) NOT NULL default '',

cmdid varchar( 20 ) NOT NULL default '',

SHOW enum( 'Y', 'N' ) NOT NULL default 'Y',

method varchar( 40 ) NOT NULL default 'WEB.00',

ownerchar( 2 ) NOT NULL default '',

user varchar( 20 ) default NULL ,

dest longtext NOT NULL ,

total varchar( 10 ) NOT NULL default '0',

PRIMARY KEY ( id )

) TYPE = MYISAM ;

 

MySQL said: Documentation

#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 'show enum('Y','N') NOT NULL default 'Y',

  method varchar(40) NOT NULL default '' at line 12

 

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

I believe that SHOW is a reserved word ? Therefore, i couldn't use it at my current SQL version.

 

How do i counter this error ? I need some help asap.

 

Thanks.

 

 

 

Jr0x

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.