--
--
复制收展SQLselect *
from (
select id, tk_pid, regexp_substr(conf_ids, '[^,]+', 1, level) conf_id
from (
select 1 as id, '001' as tk_pid, '1,2,3' as conf_ids
from dual
union all
select 2 as id, '002' as tk_pid, '1' as conf_ids
from dual
union all
select 3 as id, '003' as tk_pid, '1,2' as conf_ids
from dual
union all
select 4 as id, '003' as tk_pid, '' as conf_ids
from dual
)
connect by level <= regexp_count(conf_ids, ',') + 1
and tk_pid = prior tk_pid
and prior dbms_random.value is not null
)
where 1 = 1
and conf_id = '1';
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22