0

I have a table with a column 'DESCRIPTION'. I would like retrieve, by a regular expression, only rows with at least one lower case character.

I have tried

select * from  MYTABLE t 
WHERE REGEXP_LIKE (t.DESCRIPTION, '[a-z]');

but the result is equal to

select * from  MYTABLE t 
1
  • are you sure? This should work. Commented May 4, 2016 at 10:02

1 Answer 1

2

You may need to explicily force a case sensitive comparison:

select *
from  MYTABLE t 
WHERE REGEXP_LIKE (t.DESCRIPTION, '[a-z]', 'c')

From Oracle documentation:

If you omit match_parameter, then:

The default case sensitivity is determined by the value of the NLS_SORT parameter

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.