Notice: session_start(): A session had already been started - ignoring in /home/u614325693/domains/onedoubt.com/public_html/post.php on line 3
ALTER COLUMN - ONEDOUBT.COM

SQL ALTER COLUMN Keyword


ALTER COLUMN

The ALTER COLUMN command is used to change the data type of a column in a table.

The following SQL changes the data type of the column named "BirthDate" in the "Employees" table to type year:

Example

ALTER TABLE Employees
ALTER COLUMN BirthDate year;


Login
ADS CODE