How do you select a field that contains only uppercase character in mysql or a field that doesn't contain any lower case character?
How do you select a field that contains only uppercase character in mysql or a field that doesn't contain any lower case character?
Found this in the comments - it deserves a post of its own:
SELECT * FROM mytable WHERE BINARY mycolumn = BINARY UPPER(mycolumn);
The problem with WHERE UPPER(mycolumn) = mycolumn is the collation, and it depends on your table what you can use there.