How can I make SQL case sensitive string comparison on MySQL?

前端 未结 11 2192
温柔的废话
温柔的废话 2020-11-22 02:45

I have a function that returns five characters with mixed case. If I do a query on this string it will return the value regardless of case.

How can I make MySQL stri

11条回答
  •  北恋
    北恋 (楼主)
    2020-11-22 03:19

    The good news is that if you need to make a case-sensitive query, it is very easy to do:

    SELECT *  FROM `table` WHERE BINARY `column` = 'value'
    

提交回复
热议问题