with t as (
select 'A1' F1,'B1' F2 from dual union all
select 'B1' F1,'C1' F2 from dual union all
select 'C1' F1,'D1' F2 from dual union all
select 'D1' F1,'B1' F2 from dual union all
select 'B1' F1,'A1' F2 from dual union all
select 'A' F1,'B' F2 from dual
)
SELECT * FROM T;想知道的结果:
A1--B1--C1--D1--B1--A1为循环套用不知道我们oracle 9i有没有什么函数可以处理?谢谢。
select 'A1' F1,'B1' F2 from dual union all
select 'B1' F1,'C1' F2 from dual union all
select 'C1' F1,'D1' F2 from dual union all
select 'D1' F1,'B1' F2 from dual union all
select 'B1' F1,'A1' F2 from dual union all
select 'A' F1,'B' F2 from dual
)
SELECT * FROM T;想知道的结果:
A1--B1--C1--D1--B1--A1为循环套用不知道我们oracle 9i有没有什么函数可以处理?谢谢。
需要编写一个PL/SQL块或存储过程来处理。
connect by