ORACLE 根据根节点查所有上层节点
时间:2021-07-01 10:21:17
帮助过:13人阅读
(ID),
CONNECT_BY_ROOT(T.CODE) CODE,
CONNECT_BY_ROOT(T.NAME) NAME,
CONNECT_BY_ROOT(T.PARENTCODE) PARENTCODE
FROM TABLE_MUEN T
WHERE T.CODE = ‘FOUR-SBZHYW-GRCBZMDY‘
CONNECT BY PRIOR T.CODE = T.PARENTCODE
ORACLE 根据根节点查所有上层节点
标签:table 个人 ble 根据 社保 oracle ora 基本 select