Skip to content

CHANGE

ALTER TABLE Employees CHANGE COLUMN FirstNm FirstName VARCHAR(45);
Query OK, 0 rows affected (0.04 sec)
Records: 0 Duplicates: 0 Warnings: 0

The CHANGE clause in MySQL is used to change the name and/or data type of a column in a table. In this example, the column named FirstNm is being renamed to FirstName with datatype VARCHAR(45).