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!

Find and replace value in Delimited String

AceNoviceSep 4 2013 — edited Sep 5 2013

Hi All,

I have a requirement, where i need to find and replace values in delimited string.

For example, the string is "GL~1001~157747~FEB-13~CREDIT~A~N~USD~NULL~". The 4th column gives month and year. I need to replace it with previous month name. For example: "GL~1001~157747~JAN-13~CREDIT~A~N~USD~NULL~". I need to do same for last 12 months.

I thought of first devide the values and store it in variable and then after replacing it with required value, join it back.

I just wanted to know if there is any better way to do it?

This post has been answered by Ishan on Sep 4 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 3 2013
Added on Sep 4 2013
10 comments
605 views