select
*
from
ua_dept t
where
1 =1
and t.DEPT_STATUS =1
and t.DEPT_AUDIT_STATUS=1 start
with t.id =430 connect by prior t.id=t.parent_dept_id
t.id:起始点编号
t.parent_dept_id:父级编号
select
*
from
ua_dept t
where
1 =1
and t.DEPT_STATUS =1
and t.DEPT_AUDIT_STATUS=1 start
with t.id =430 connect by prior t.id=t.parent_dept_id
t.id:起始点编号
t.parent_dept_id:父级编号