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!

Parse or split names with delimiter (,) into seperate records.

user13034857Sep 10 2014 — edited Sep 10 2014


Hello Oracle Guru's

I am having a requirement to parse or spilt names in one field in to separate records based on delimiter (comma). I am giving an example which will explain my requirement.

I am using Oracle 11g. I used regexp_substr function, it is not working

Input (Source Table)

ID                   Name   

100                 John,Smith,willam

200                 A,B,C

300                 X,Y,Z

Output (Target Table)

ID                        Name

100                      John

100                      Smith

100                      William

200                       A

200                       B

200                      C

300                      X

300                      Y

300                      Z

Thanks in advance.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 8 2014
Added on Sep 10 2014
4 comments
1,301 views