v7znay
v7znay

Reputation: 11

MySQL - phpMyadmin - Error #1064

CREATE TABLE 'serverlist' (
'ID' int(4) NOT NULL auto_increment,
'Name' text NOT NULL,
'Number' text NOT NULL,
'BuyIn' DOUBLE NOT NULL default'0',
'BuyIn2' DOUBLE NOT NULL default'0',
'Limit' int(5) NOT NULL default'0',
'AvgPot' DOUBLE NOT NULL default'0',
PRIMARY KEY (id)
);

^This results in the following 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 ''serverlist' ( 'ID' int(4) NOT NULL auto_increment, 'Name' text NOT NULL, 'Nu' at line 1

Any ideas?

Upvotes: 1

Views: 999

Answers (1)

dani herrera
dani herrera

Reputation: 51655

change simple quotes by back quotes:

CREATE TABLE `serverlist` (
`ID` int(4) NOT NULL auto_in
...

Upvotes: 3

Related Questions