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
)

posted on 2013-07-03 09:14  adolfmc  阅读(657)  评论(0编辑  收藏  举报