Oracle遍历子节点_hanCSDN_20150319

来源:互联网 发布:智业软件薪资 编辑:程序博客网 时间:2024/06/05 02:02
select * from gis_module where id=(select id from gis_module where display_name like '%人口%') 
union 
select * from gis_module 
start with parent_id=(select id from gis_module where display_name like '%人口%') connect by prior id = parent_id 
union 
select * from gis_module where id=(select id from gis_module where display_name like '%业务%') 
union 
select * from gis_module 
start with parent_id=(select id from gis_module where display_name like '%业务%') connect by prior id = parent_id 
0 0