SQL ADD Keyword
The ADD keyword in SQL is used with the ALTER TABLE statement to add a new column to an existing table.
SQL ADD Syntax
SQL
x
1
ALTER TABLE table_name
2
ADD column_name datatype;
SQL ADD Example
This query adds a new column named email
of type VARCHAR(255)
to the Patients
table:
SQL
1
1
ALTER TABLE Patients
2
ADD email VARCHAR(255);
