I can't find a reference about which part of a MySQL query is case sensitive.
Is there an overview of where capitalization matters?
Specifically, are any of these case sensitive:
Is it tied to the OS? Configurable? Or some other combination of factors?
Table names are stored in lowercase on disk and name comparisons are not case-sensitive. MySQL converts all table names to lowercase on storage and lookup.
yes. ci is case insensitive.
Case sensitivity rules in SQL statements vary for different statement elements, and also depend on what you are referring to and the operating system of the machine on which the server is running. SQL keywords and function names. Keywords and function names are not case sensitive. They can be given in any lettercase.
In MySQL, databases correspond to directories within the data directory. Each table within a database corresponds to at least one file within the database directory (and possibly more, depending on the storage engine). Consequently, the case sensitivity of the underlying operating system plays a part in the case sensitivity of database and table names. This means database and table names are not case sensitive in Windows, and case sensitive in most varieties of Unix.
.
The lower_case_table_names system variable also affects how the server handles identifier case sensitivity
You can read more about the topic here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With