I’m using the Kohana framework and I need to convert column names to lowercase. I don’t have control of the db table structure. I want to do the following:
SELECT LOWER(*) FROM .....
but MYSQL does not like that. Whats the proper way of outputting the lower case column names if I don’t know what the column names will be?
Found here http://dev.mysql.com/doc/refman/5.0/en/columns-table.html
Below you can see both MSSQL and MySQL syntax for creating a dynamic query using the column results from the query above.
MSSQL Syntax
With this you are dynamically building your query and then executing it.
MySQL Syntax