Created
February 28, 2011 20:04
-
-
Save gavinblair/847927 to your computer and use it in GitHub Desktop.
Case Sensitive LIKE in MySQL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// this returns 1 (true) | |
select 'A' like 'a' | |
// this returns 0 (false) | |
select 'A' like binary 'a' | |
//from http://www.delphifaq.com/faq/databases/mysql/f801.shtml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
... or set the column to a case sensitive character set (one that doesn't end in
_ci
)