ALTER TABLE

SQL ALTER TABLE Keyword

The ALTER TABLE command adds, deletes, or modifies columns in a table. It can also add or delete various constraints in a table.

Tutorials dojo strip

SQL ALTER TABLE Syntax

For Adding Column:

SQL

For Dropping Column:

SQL

SQL ALTER TABLE Example – Adding a Column

This query adds an “Email” column to the “Patients” table:

SQL

SQL ALTER TABLE Example – Deleting a Column

This query deletes the “Email” column from the “Patients” table:

SQL

SQL ALTER TABLE Labs

Tutorials dojo strip