无关联的两个字段进行联查查询,避免字段重复,查询出来的结果一一对应。
SELECT * FROM ( SELECT REGEXP_SUBSTR('246710181,260385679', '[^,]+', 1, rownum) str ,rownum rn from dual connect by rownum <= (LENGTH('246710181,260385679') - LENGTH(regexp_replace('246710181,260385679', ',', '')) ) +1) A,
( SELECT REGEXP_SUBSTR('235845279,235845318', '[^,]+', 1, rownum) str ,rownum rn from dual connect by rownum <= (LENGTH('235845279,235845318') - LENGTH(regexp_replace('235845279,235845318', ',', '')) ) +1) B where A.RN = B.RN