【发布时间】:2020-10-12 15:31:03
【问题描述】:
给定路径的唯一子节点(给定路径除外)
查询:
select path from tree where path <@ 'a.b.c';
结果:
预期结果:
a.b.c 的所有以下节点(结果不需要 a.b.c)
【问题讨论】:
-
path的数据类型是什么? -
是 ltree 类型
标签: sql postgresql select where-clause ltree