MySQL的另一個MySQL語法錯誤(通過PHP)此查詢返回一個語法錯誤:使用INSERT INTO
INSERT INTO links (link, name, desc, category)
VALUES ('www.contoso.com', 'Contoso', 'My Website', 'Vanity')
ERROR: 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 'desc, category) VALUES ('www.contoso.com', 'Contoso', 'My Website', 'Vani' at line 1
我看沒有錯。是什麼賦予了?
作爲一般規則,不要爲表或列名使用保留字。它節省了很多麻煩。 – Ben 2012-01-10 21:30:50