MySQL case insensitive select

NoodleOfDeath picture NoodleOfDeath · Oct 14, 2010 · Viewed 290.2k times · Source

Can anyone tell me if a MySQL SELECT query is case sensitive or case insensitive by default? And if not, what query would I have to send so that I can do something like:

SELECT * FROM `table` WHERE `Value` = "iaresavage"

Where in actuality, the real value of Value is IAreSavage.

Answer

Marc B picture Marc B · Oct 14, 2010

They are case insensitive, unless you do a binary comparison.