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!

Replace last comma with ' and '

DSAug 22 2013 — edited Aug 22 2013

Hi All,

please let me know is there any simple way of replacing last comma in as string with ' and '

eg: 1.  abc,xyz,wuv should be returned abc,xyz and wuv

     2. abc,wuv should be returned abc and wuv

     3. abc,pqr,cuq,wuv should be returned abc ,pqr,cuq and wuv

DB version : 11.2.0.3

Thanks,

DS

This post has been answered by Frank Kulash on Aug 22 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 19 2013
Added on Aug 22 2013
4 comments
1,406 views