bugl
bugl
HomeLearnPatternsSearch
HomeLearnPatternsSearch

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

SQL COLUMN Keyword

Concept visual

SQL COLUMN Keyword

Pointer walk
two pointers
leftright102132436485116
left=0
right=6
1
3

Start at both ends

COLUMN Keyword

Previous

❮ SQL Keywords

Next

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;

Drop Column

The DROP COLUMN

command is used to delete a column in an existing table. The following SQL deletes the "ContactName" column from the "Customers" table:

Example

ALTER TABLE Customers

DROP COLUMN ContactName;

Previous

❮ SQL Keywords

Next

Previous

SQL CHECK Keyword

Next

SQL CONSTRAINT Keyword