Showing posts with label Spliting One row into Multi rows. Show all posts
Showing posts with label Spliting One row into Multi rows. Show all posts

Wednesday, 20 April 2011

Spliting One row into Multi rows


Spliting One row into Multi rows

Spliting One row into Multi rows
select * from (
with t as (select 'A-INSTALL,6-FOLLOWUP' str from dual)
SELECT trim(REGEXP_SUBSTR (str,'[^,]+' ,1,level))
FROM t
connect by instr(str, ',', 1, level - 1) > 0
and connect_by_root str = str)