关系模型是
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 …