oracle connect nocycle

select * from uc_staff_department_level t,uc_t_staff st
where st.id=t.staff_id
and t.department_id in (
select d.id from uc_t_department d start with d.id=507055 connect by nocycle d.id = prior d.parent_dep_id
)

原文地址:https://www.cnblogs.com/adolfmc/p/3168782.html