Is there any way using which I can change the case of column names. I need to do this as I have several tables in which some of them have column names all in upper case and some of them have column names all in lower case or tables has combination of upper and lower case column names.
Any input will be a great help.
Thanks,
Manasi
You can use
ALTER TABLEto rename tables, and select frominformation_schema.columnsto get columns with whichever naming scheme you don’t want. Combine those with dynamic SQL (you can usePREPAREfor this purpose) or a script to generate and execute the SQL statements. However, SQL is generally case insensitive, so these changes would be cosmetic.Untested examples to generate column renaming queries (generated queries may drop column attributes):