How to find all upper case strings in a MySQL table?

后端 未结 6 464
执笔经年
执笔经年 2021-02-03 11:15

I initially thought this is trivial. Then thought \'binary\' might do it. I am unsure at this point.

Name
----
John
MARY
Kin
TED

I would like t

6条回答
  •  广开言路
    2021-02-03 12:02

    This will also return numeric values, but that doesnt look to be an issue for your column name.

    SELECT * FROM names WHERE 
    
    ASCII(name) = ASCII(Upper(name))
    

提交回复
热议问题