JCR-SQL2查询通配符搜索不起作用。

时间:2012-12-19 11:55:27

标签: java jackrabbit jcr jcr-sql2

我想运行这个JCR SQL2查询:

SELECT * FROM [nt:base] WHERE path LIKE '/A/B/%'

但是在运行查询后,我得到以下异常:

javax.jcr.query.InvalidQueryException: Query:
SELECT * FROM [nt:base] WHERE jcr:(*)path LIKE '/A/B/%'; expected: (, ., =, <>, <, >, <=,

1 个答案:

答案 0 :(得分:1)

SELECT * FROM [nt:base] WHERE ISDESCENDANTNODE([/A/B/%])

了解更多here