Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem.....

Status
Not open for further replies.

RaceAap

IS-IT--Management
Sep 5, 2001
39
NL
Hi,

When I import a dump file created with mysqldump the following part:

CREATE TABLE s_menu (
id int(11) NOT NULL auto_increment,
description varchar(40) default NULL,
order int(11) NOT NULL default '1',
PRIMARY KEY (id)
) TYPE=MyISAM;

Generates:
ERROR 1064: You have an error in your SQL syntax near 'order int(11) NOT NULL default '1',
PRIMARY KEY (id)
) TYPE=MyISAM' at line 4

I don't understand why this part failes.. as other parts of the dump file do work correctly.

Anyone who knows why ??

Thanx in advance

Lon
 
order is a sql keyword...change it to orders or some other word that is not a keyword

hth

Bastien

cat, the other other white meat
 
Thanks

that was indeed the problem.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top