Richard Korts
asked on
MySQL Case Sensitivity
I believe that MySQL is NOT case sensitive; that is, for example "GENE" and "Gene" are considered equal so a query like "SELECT * from techs where techid = 'Gene'" will get that record.
Is there a way to cause MySQL to be case sensitive so the above example fails if The database has "GENE" as the value.
Thanks.
Is there a way to cause MySQL to be case sensitive so the above example fails if The database has "GENE" as the value.
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I wouldn't be forcing case sensitive collation on a db, more likely to cause problems down the line when you cannot work out why a simple select is not working, better to use BINARY when you need it for those edge cases.
Database and table names are also used as directory and file names. In the MySQL installs that I have, it seems that database and table names are always forced to lower case. That may be because of phpMyAdmin and not MySQL. I haven't really checked to find out... since that's fine with me.