我有一个TABLE
这样的:
id | expected | current
------+----------+--------
123 | 25 | 15
234 | 26 | 26
345 | 37 | 37
ids
现在我想选择所有current
等于expected
. 在 SQL 中,我会做这样的事情:
SELECT id FROM myTable WHERE current = expected;
但在 CQL 中它似乎是无效的。我的cqlsh
回报是:
no viable alternative at input 'current'
是否有有效的 CQL 查询来实现这一点?
根据 CQL-Docs编辑 它应该可以工作,但它没有......这就是文档所说的:
<selectWhereClause> ::= <relation> ( "AND" <relation> )*
| <term> "IN" "(" <term> ( "," <term> )* ")"
<relation> ::= <term> <relationOperator> <term>
<relationOperator> ::= "=" | "<" | ">" | "<=" | ">="
<term> ::= "KEY"
| <identifier>
| <stringLiteral>
| <integer>
| <float>
| <uuid>
;