我正在使用以下 SQL 查询:
SELECT * FROM Articles WHERE Name = 'Name' AND Column = 'Column'
我收到以下错误:
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 'Column = 'Column' LIMIT 0, 30' at line 1
我没有发现任何语法错误。有什么问题?
最佳答案
列
是 reserved word所以你需要把它封装在`字符之间:
AND `Column` = 'Column'
关于mysql - 这个 SQL 查询有什么问题?发生了无意义的错误。,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10870872/