I have imported a CSV file as SQL table using import
option of PHPMyAdmin
(because I found that to be easiest). Now the column names are "COL 1, COL 2,..." and the desired column names are the first row in the table.
How do I change the column names to the values in first row (for all the tables of a database)?
Here is a way to change one column name at a time but I have too many column names in each table of the database and I want to apply this to all tables at once.
Is there a moderately easy way to do this? Or should I try and incorporate this while importing the CSV file?