Well you need
ALTER TABLE table_name CHANGE col_name new_name VARCHAR(255)
But, you are right, it takes some time to make changes. There really is no faster way to modify a table in MySQL.
Is your anxiety downtime during change? If so, an approach is possible here: copy the table to a new one, then change the column name to a copy, then rename the copy.
You probably realized that regularly changing column names in tables in a production system is not a good idea.
O. jones
source share