OU
select level,id,parent_id,name,substr(sys_connect_by_path(name,'/'),2) as ou
from isc_baseorg
connect by prior id=parent_id
start with id='28D1D9E3E55E49B58E67FA2CEFA58EE2';
--------------
SELECT id,name,d.parent_id,level,substr(sys_connect_by_path(name,'/'),2) as ou
FROM isc_baseorg d
CONNECT BY PRIOR id=parent_id
START WITH name='中国南方电网有限责任公司'
SELECT id,name,d.parent_id,level,substr(sys_connect_by_path(name,'/'),2) as ou
FROM isc_specialorg_unit d
CONNECT BY PRIOR id=parent_id
START WITH id='402849815003d443015003d493980139'
正文到此结束
- 本文标签: 暂无相关标签
- 本文链接: https://www.jimmy2k.top/article/97
- 版权声明: 本文由JimmyZ的个人博客原创发布,转载请遵循《署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)》许可协议授权