對我的生活中,我似乎可以推測出來查詢錯誤包含一個名爲「命令」
INSERT INTO category SET CategoryName = 'Hardware_1',
Category = 'HARDWARE', Status = '1', Order = '1'
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 'Order = '1'' at line 1
CREATE TABLE `category` (
`CategoryID` int(11) NOT NULL AUTO_INCREMENT,
`CategoryName` varchar(255) NOT NULL,
`Category` varchar(255) NOT NULL,
`Status` tinyint(4) NOT NULL,
`Order` int(11) NOT NULL,
PRIMARY KEY (`CategoryID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
+1提供查詢和'CREATE TABLE'腳本。 – Quassnoi 2010-11-10 22:16:56
可能重複的[我怎樣才能寫一個與MySql中的受保護關鍵字名稱相同的表的SQL?](http://stackoverflow.com/questions/10706920/how-can-i-write-sql-for -a-table-that-shares-the-same-name-as-a-protected-keyword) – Jocelyn 2013-05-06 06:38:20