|
with t as (select rownum+64 n from dual connect by rownum<=3),
t2 as (select replace(sys_connect_by_path(chr(n),','),',') str
from t
where level>=2
start with n=65
connect by nocycle n!=prior n )
select listagg(substr(a.str,b.column_value,1)||substr(a.str,b.column_value,1)) within group (order by b.column_value) res
from (select rownum id,str from t2) a,table(cast(multiset(select rownum from dual connect by rownum <= length(a.str)) as sys.odcinumberlist)) b
group by a.id
order by a.id
|
|