What is the use of Alter Table command in database?
Ask by Anonymous User
Updated 21 Sep 2020
The SQL ALTER TABLE command is used to add, delete or modify columns in an existing table.
Use of ALTER command in database
Alter command is used for change the column name, add column, add constraint, and change the datatype.
Syntax: Add Column name
Syntax: Delete a Column
Syntax: Change Column Name
To add a column in a table, use the following syntax:
ALTER TABLE table_name
ADD column_name datatype