【发布时间】:2014-08-09 00:59:12
【问题描述】:
我有一个非常简单的查询:
SELECT * FROM "orders" WHERE "printer_id" = 'AC001' AND "sent" = '0'
它会抛出以下错误:
#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 '"orders" WHERE "printer_id" = 'AC001' AND "sent" = '0' at line 1
从列名中删除“”使其工作!如果有帮助,我使用 Medoo (http://medoo.in/) 作为我的数据库框架。
【问题讨论】:
-
问题已解决。我修复的框架存在问题!
-
你能解释一下你是如何解决这个问题的吗?
-
是的,请看下面我接受的答案。
标签: mysql