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:
character class:
SELECT 'z' REGEXP '^[[:upper:]]+$';
This gives true, although the z is in lower case,... why?
So with that in mind, just do something like this:
Using the above example, you'd get a list of emails that contain one or more uppercase letters.
change to case sensitive collation, eg.
then try this query,
For me this works and is not using a regexp. It basically compares the field with itself uppercased by mysql itself.