1
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)
);
^这将导致以下错误:MySQL的 - phpMyAdmin的 - 错误#1064
#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
任何想法?
有这个之间的差异,并没有任何的报价呢? – joakimdahlstrom 2012-03-17 16:32:45
用引号可以使用表格和字段名称中的空格以及保留字作为标识符。 – danihp 2012-03-17 16:33:48