Rename a column while specifying its full definition.
Section: create and alter tables
Rename a column
sql
sql
ALTER TABLE users CHANGE COLUMN full_name display_name VARCHAR(255) NOT NULL;Explanation
In MySQL, `CHANGE COLUMN` renames a column and requires the new full definition.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing create and alter tables