select t.dept_cd,t.dept_name,t.up_dept_cd from DM_DS.TDS_COMP_DEPT t connect by t.up_dept_cd = prior t.dept_cd start with t.up_dept_cd=20
详细解决方案
orace sql 遍历 上级部门
热度:352 发布时间:2016-05-05 14:04:09.0
select t.dept_cd,t.dept_name,t.up_dept_cd from DM_DS.TDS_COMP_DEPT t connect by t.up_dept_cd = prior t.dept_cd start with t.up_dept_cd=20