[导入]实现树型查询 start with id is null connect by prior

[导入]实现树型查询 start with id is null connect by prior

select level, d1.dept_id,d1.dept_code,sys_connect_by_path(dept_code,'/') path from zte_fbp_depts d1
start with  d1.dept_id=12
connect by prior d1.dept_id= d1.parent_dept_id


文章来源: http://stocknewbie.bokee.com/viewdiary.16533973.html

你可能感兴趣的:([导入]实现树型查询 start with id is null connect by prior)