Mysql - Rename all tables and columns to lower case?
问题 I recently transferred a database from a windows box to a linux box. The tables are mixed between lower and upper case names. I need a way to rename all tables and columns to lowercase. Is that possible? I see in this SO answer it's possible for tables, but have not found anything that deals with column names. 回答1: You can try to do exact same thing with Information_Schema.Columns table EDIT: Something like SELECT CONCAT('ALTER TABLE ', TABLE_NAME, ' CHANGE `', COLUMN_NAME, '` `', LOWER