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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Help in the below query

762222Jun 24 2010 — edited Jun 26 2010
Hi ,

I have the following string

select '1, ,3, , , abc, ,dce,234, , , abc 1 ,1 ,4 ' from dual

and i have translations for

abc,dce and abc 1 respecitvely as
X ,Y and Z

which i strore in a table as

1 abc X
2 dce Y
3 abc 1 Z

now i want to replace these tranlations in my original string such that my spaces etc are intact ( note that i cannot use the replace function directly)

MY final string should look like

1, ,3, , , X, ,Y,234, , , Z ,1 ,4

any pointers how i can achieve it.



Thanks
This post has been answered by Karthick2003 on Jun 24 2010
Jump to Answer

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jul 24 2010
Added on Jun 24 2010
10 comments
1,289 views