oracle的start with connect by prior如何使用
oracle的start with connect by prior是根据条件递归查询"树",分为四种使用情况
:
第一种:start with 子节点ID=’…’ connect by prior 子节点ID = 父节点ID
`select * from mdm_organization o start with o.org_code='10000008' connect by prior o.org_code=o.org_parent_code;
按照条件org_code=‘10000008’,对’
转载
2020-06-07 00:45:22 ·
210 阅读 ·
0 评论