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的树型结构查询
最新推荐文章于 2024-10-31 16:05:09 发布
select lpad(' ', level, '-') || A, B
from Table where C = 4
connect by prior A = D start with D is null
order siblings by A;