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!

Remove duplicates in a string

SriniVelumuriMay 24 2011 — edited May 25 2011
Hi all,

I have requirement of removing duplicates from a string.
Imagine, i have a sting 'abcd abde befg' (for the sake of readability i did put space),
the output of the query should print 'abcdefg'

Query should be generic to remove all duplicates from the string.
Not a restricted query for this particular example string.

I have tried to formulate a query with REGEXP_REPLACE but not successful.
Any help would be greatly appreciated.

Regards,
Srini
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 22 2011
Added on May 24 2011
18 comments
2,365 views