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!

how to find out the repeated character in a string value?

684380May 7 2010 — edited May 7 2010
Dear People,
I want to trace out the names where a character occured more than once.for ex, i need o/p as

ENAME

ALLEN
TURNER
ADAMS
...

In which all the above name consists of repeated characters.

I use Oracle 10g and i tried using REGEXP say for ex,
SELECT ENAME FROM EMP WHERE REGEXP_LIKE(ENAME,'L{2}');

ENAME
----------
ALLEN
MILLER
but this works only for single character.how to specify condition for any character?.pls suggest me.

With Regards
VIDS
This post has been answered by MichaelS on May 7 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 4 2010
Added on May 7 2010
11 comments
7,610 views