I want to check, if a string consits only of uppercase letters. I know that RLIKE/REGEXP are not case sensitive in MySQL. So I tried to use the :upper: characte
:upper:
For me this works and is not using a regexp. It basically compares the field with itself uppercased by mysql itself.
-- will detect all names that are not in uppercase SELECT name, UPPER(name) FROM table WHERE BINARY name <> BINARY UPPER(name) ;