The ALTER table command is used to add, delete, or modify columns in an existing table. To add a column in a table, use the following syntax: ALTER TABLE table_name ADD column_name datatype
Join MindStick Community
You need to log in or register to vote on answers or questions.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
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