bugl
bugl
HomeLearnPatternsPathsSearch
HomeLearnPatternsPathsSearch

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

SQL COLUMN Keyword

Flash cards

Review the key moves

1/4
Core idea

What is the main idea behind SQL COLUMN Keyword?

Lesson checks

Practice each idea before moving on

Short Mimo-style checks built from this lesson's code, terms, and sequence.

1Quick choice

Which statement best captures the main point of this lesson?

2Fill blank

Complete the missing token from the example code.

___ TABLE Employees
3Order

Put the learning moves in the order that makes the concept easiest to apply.

The DROP COLUMN command is used to delete a column in an existing table.
The following SQL changes the data type of the column named "BirthDate" in the "Employees" table to type year:
The ALTER COLUMN command is used to change the data type of a column in a table.

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 CHECK Keyword

Next

SQL CONSTRAINT Keyword