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!

How to get the substring from a column with many carriage returns

Mark1970Sep 21 2012 — edited Sep 21 2012
I've got this situation.
In a not normalized table loaded with data from an excel file, I have a column containing a long string with many carriage returns so that after each of them it begins a new string I have to manipulate.
I mean, in the column PERSON I've got something like this:
PERSON
_______

Jonh
Taylor
Software developer
...

Of course I have to write a Pl/Sql procedure extracting each string and I know that each string ends with a carriage return chr(13)||chr(10)
Has someome a procedure or a function to give me that can help me?
I think I should use the INSTR built-in function but I it'd be usefeull whether some of you had something ready.
Thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 19 2012
Added on Sep 21 2012
15 comments
1,489 views