with t as(select '1' id,'11,22,33' str from dual union all select '2','11,22,33,44' from dual)
select id,regexp_substr(str,'[^,]+',1,level) str
from t
connect by level<=regexp_count(str,'[^,]+')
and prior id=id
and prior dbms_random.random is not null
#6
with t1 as
(
select 'a,b,c' c1 from dual
)
select distinct regexp_substr(c1, '[^,]+',1,level) c1
from t1
connect by level <= length(c1) - length(replace(c1,',','')) + 1;
with t as(select '1' id,'11,22,33' str from dual union all select '2','11,22,33,44' from dual)
select id,regexp_substr(str,'[^,]+',1,level) str
from t
connect by level<=regexp_count(str,'[^,]+')
and prior id=id
and prior dbms_random.random is not null
with t as(select '1' id,'11,22,33' str from dual union all select '2','11,22,33,44' from dual)
select id,regexp_substr(str,'[^,]+',1,level) str
from t
connect by level<=regexp_count(str,'[^,]+')
and prior id=id
and prior dbms_random.random is not null
with t as(select '1' id,'11,22,33' str from dual union all select '2','11,22,33,44' from dual)
select id,regexp_substr(str,'[^,]+',1,level) str
from t
connect by level<=regexp_count(str,'[^,]+')
and prior id=id
and prior dbms_random.random is not null
#6
with t1 as
(
select 'a,b,c' c1 from dual
)
select distinct regexp_substr(c1, '[^,]+',1,level) c1
from t1
connect by level <= length(c1) - length(replace(c1,',','')) + 1;
#7
with t as(select '1' id,'11,22,33' str from dual union all select '2','11,22,33,44' from dual)
select id,regexp_substr(str,'[^,]+',1,level) str
from t
connect by level<=regexp_count(str,'[^,]+')
and prior id=id
and prior dbms_random.random is not null
with t as(select '1' id,'11,22,33' str from dual union all select '2','11,22,33,44' from dual)
select id,regexp_substr(str,'[^,]+',1,level) str
from t
connect by level<=regexp_count(str,'[^,]+')
and prior id=id
and prior dbms_random.random is not null
with t as(select '1' id,'11,22,33' str from dual union all select '2','11,22,33,44' from dual)
select id,regexp_substr(str,'[^,]+',1,level) str
from t
connect by level<=regexp_count(str,'[^,]+')
and prior id=id
and prior dbms_random.random is not null
with t as(select '1' id,'11,22,33' str from dual union all select '2','11,22,33,44' from dual)
select id,regexp_substr(str,'[^,]+',1,level) str
from t
connect by level<=regexp_count(str,'[^,]+')
and prior id=id
and prior dbms_random.random is not null