How to find rows that have a value that contains a lowercase letter

前端 未结 13 1417
醉梦人生
醉梦人生 2021-02-01 00:36

I\'m looking for an SQL query that gives me all rows where ColumnX contains any lowercase letter (e.g. \"1234aaaa5789\"). Same for uppercase.

相关标签:
13条回答
  • 2021-02-01 01:02

    This is how I did it for utf8 encoded table and utf8_unicode_ci column, which doesn't seem to have been posted exactly:

    SELECT *
    FROM table
    WHERE UPPER(column) != BINARY(column)
    
    0 讨论(0)
提交回复
热议问题