I want to name my mysql table column names using camel case and create php classes from these mysql tables with the same camel case names. I will be generating these php classes automatically. I’m wondering if I can rely on column name case no matter what platform I run my application on. So for example, if I name one column name “FirstName”, will I ever encounter a time where reading the column name from the database will product “firstname” or something like that?
Share
Short answer is no.
The long answer is that case-sensitivity for some things in MySQL depend on the underlying operating system. (Unix being the sensitive one)
Here is the reference to the issue in the MySQL documentation.
Also from the documentation on column names specifically: