Is there any Collation type in MySQL which supports Case Sensitive.
I had all type of collation in MySQL they all have _ci at the end of their name so they are case Insensitive collation. Thank you in advance.
According to MySQL Manual http://dev.mysql.com/doc/refman/5.0/en/charset-mysql.html you should be able to set collation to
_cs for case sensitivity. You can get a list of
_cs collations by executing
SHOW COLLATION WHERE COLLATION LIKE "%_cs" query
After a little research:
Apparently there are no
utf8_*_cs in MySQL (yet). If you need case sensitive collation for utf8 fields, you should use
utf8_bin. This will mess up
ORDER BY, but this can be fixed by
ORDER BY column COLLATE utf8_general_ci
Try a collation ending in
_bin, such as
utf8_bin, depending on your character set.
The new version of MySQL (8.0.1 and higher) comes (finally) with a set of
More about it here