SQL Keyword ALTER COLUMN

The ALTER COLUMN keyword can be used to change the data type of a column.

The below SQL changes the data type of column "birth_date" to type "year".

Run this on IDE

ALTER TABLE employees
ALTER COLUMN birth_date year;

Related Links