I am having an issue with a check constraint reading [A-Z].
here is the code:
drop table test CASCADE CONSTRAINTS; Create table test ( post Varchar2(6), CHECK (post like '[A-Z]') ); insert into test values ('A'); And I receive a "check constraint violated" error after trying to insert A. Any feedback would be appreciated. Even if it does work for you because everything is telling me it should work.
insert into test values ('[A-Z]')would work. It is regexp_like you're looking for (see Tim's answer).