【发布时间】:2014-05-31 07:59:11
【问题描述】:
我的 jcrBrowser 中有以下结构
我想选择所有具有属性“businessGroups”并且值等于其中一些数字的节点 - 12、10、1。请参阅下面我的查询
select * from nt:base where jcr:primaryType='mgnl:component' and businessGroups IN ('10', '12', '1')
但是这个查询不起作用,我得到一个错误:
Encountered "IN" at line 1, column 81.
Was expecting one of:
"IS" ...
"NOT" ...
"LIKE" ...
"BETWEEN" ...
"(" ...
"." ...
"<" ...
"=" ...
">" ...
"<>" ...
">=" ...
"<=" ...
那么问题是什么?我的查询语法不正确还是运算符 IN 有问题? 顺便说一句,如果我这样改变我的查询
select * from nt:base where jcr:primaryType='mgnl:component' and businessGroups = '1'
一切正常
【问题讨论】: