Curriculum
Course: SQL
Login

Curriculum

SQL

SQL References

0/80

MySQL Functions

0/139

SQL Server Functions

0/84

SQL Quick Ref

0/1
Text lesson

ALTER COLUMN

ALTER COLUMN

The ALTER COLUMN command alters the data type of a column in a table.

The following SQL modifies the data type of the “BirthDate” column in the “Employees” table to “year” type.

Example

ALTER TABLE Employees
ALTER COLUMN BirthDate year;