Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Easy Question: How to split concatenated string into multiple rows?

TomeoDec 7 2009 — edited Dec 8 2009
Hi folks,

this might be an easy question.

How can I split a concatenated string into multiple rows using SQL query?

INPUT:
select 'AAA,BBB,CC,DDDD' as data from dual
Delimiter = ','

Expected output:
data
------------
AAA
BBB
CCC
DDDD
I'm looking for something kind of "an opposite for 'sys_connect_by_path'" function.

Thanks,
Tomas
This post has been answered by BluShadow on Dec 7 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 5 2010
Added on Dec 7 2009
7 comments
2,471 views