标签: 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: (, ., =, <>, <, >, <=,
答案 0 :(得分:1)
SELECT * FROM [nt:base] WHERE ISDESCENDANTNODE([/A/B/%])
了解更多here