Skip to content

Instantly share code, notes, and snippets.

@gavinblair
Created February 28, 2011 20:04
Show Gist options
  • Save gavinblair/847927 to your computer and use it in GitHub Desktop.
Save gavinblair/847927 to your computer and use it in GitHub Desktop.
Case Sensitive LIKE in MySQL
// 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
@SeanJA
Copy link

SeanJA commented Feb 28, 2011

... or set the column to a case sensitive character set (one that doesn't end in _ci)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment