Sql 查询的ColdFusion查询

Sql 查询的ColdFusion查询,sql,coldfusion,coldfusion-8,qoq,Sql,Coldfusion,Coldfusion 8,Qoq,此查询: SELECT * FROM getlogs WHERE id > #id# AND logType = "login" LIMIT 1 给我这个错误: Error Executing Database Query. Query Of Queries syntax error. Encountered "logType. Incorrect conditional expression, Incorrect conditional expression, Lexical er

此查询:

SELECT * FROM getlogs WHERE id > #id# AND logType = "login" LIMIT 1
给我这个错误:

Error Executing Database Query.


Query Of Queries syntax error.
Encountered "logType. Incorrect conditional expression, Incorrect conditional expression, Lexical error at line 0, column 0. Encountered: "\"" (34), after : ""

使用单引号而不是双引号。

使用最大行数:

从getlogs中选择*,其中id>id,logType=login

他们应该在文档中添加这一点,另外,我可以使用limit吗?@Bubby It is-检查mysql文档。毕竟,这就是你正在使用的数据库。它也是ansi-92 sql规范的一部分。执行数据库查询时出错。查询语法错误。遇到了限制是的,我确定它是>>@Bubby,啊,那么你没有使用mysql。你在说什么数据库引擎?ColdFusion查询数据库,这是ColdFusion的一个功能,你可以运行SQL语句,我想这是ColdFusion的自定义功能?在查询对象上。什么数据库?据我所知,只有PostgreSQL、MySQL和SQLite知道支持限制,但这似乎不是问题所在,也不是问题所在。getlogs表中有一个名为logtype的列吗?@Bubby你应该接受这个,而不是我的-他实际上告诉了你如何修复它,而不仅仅是错误所在。