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!

Removing comma (,) from string

kumar73Jul 9 2012 — edited Jul 10 2012
Hello Friends,

I have a string something of this nature

Sting : ',3456,45454,,45454,'

Need to have just comma seperated value : '3456,45454,45454'
Tried with replace but getting - '34564545445454'

select replace ( ltrim(RTRIM(replace(',3456,45454,,45454,', ',,', ','),',')),',', '') from dual;



Appreciate your help .


Thanks/Kumar
This post has been answered by kendenny on Jul 9 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 7 2012
Added on Jul 9 2012
10 comments
20,000 views