MySQL Rename a Table or Column
Summary As of MySQL 5.0, renaming a table is trivial with the “rename table” function. Renaming a column was a little cryptic, even looking at the documentation. Here are a couple of concrete examples. To rename a table from “lu_wind_direction” to “lu_direction”: To rename a column called “wind_speed” to “speed” in the table named “spacetime”: So, when renaming a…