Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
给定路径的唯一子节点(给定路径除外)
询问:
select path from tree where path <@ 'a.b.c';
结果:
预期结果:
abc 的所有以下节点(结果不需要 abc)
如何明确排除确切的值?
select path from tree where path <@ 'a.b.c' and path <> 'a.b.c'
或者,您可以使用:
select path from tree where path ~ 'a.b.c.*{1}'