select lpad(' ', level, '-') || A, B
from Table where C = 4
connect by prior A = D start with D is null
order siblings by A;
oracle的树型结构查询
最新推荐文章于 2025-08-20 14:43:31 发布
select lpad(' ', level, '-') || A, B
from Table where C = 4
connect by prior A = D start with D is null
order siblings by A;