是想要在PL SQL中显示出来?
select org_id, lpad(' ', level - 1, ' ') || org_code org_name from zr_organization WHERE DELETED = 0 start with org_id = 2000180 connect by prior org_id = parent_id
显示结果:
如果只中纯数据的展示,可以参考这里:
http://www.cnblogs.com/downmoon/archive/2013/01/30/2883502.html
如果在UI中展示,一般用递归绑定tree