小编Int*_*rUA的帖子

如何使用Oracle CONNECT BY将层次结构中的所有值链接到某个值

关系模型是

1   3   
 \ / \
  2   4
   \
    7   5     8
     \ /     /
      6     9
Run Code Online (Sandbox Code Playgroud)

表是:

select 2 child, 1 father from dual
union all
select 2 child, 3 father from dual
union all
select 4 child, 3 father from dual
union all
select 7 child, 2 father from dual
union all
select 6 child, 5 father from dual
union all
select 6 child, 7 father from dual
union all
select 9 child, 8 father from dual
Run Code Online (Sandbox Code Playgroud)

如何将所有值与值CHILD或FATHER …

oracle plsql connect-by

6
推荐指数
1
解决办法
1971
查看次数

标签 统计

connect-by ×1

oracle ×1

plsql ×1