ALTER TABLE ADD Column
Oracle Database Basic Course
Created by :
Database, Oracle
course
Programming, Software and application
1739
2020-12-07 03:13:23
To add new column in existing table, ALTER TABLE is used with ADD action with following syntax
Syntax:
ALTER TABLE table_name ADD column_name data_type constraint;
In this statement:
- -First, you specify the name of the table, which you want to add the new column, after the ALTER TABLE clause.
- -Second, you specify the column name, data type, and its constraint.
Points to Remember:
- You cannot add a column that already exists in the table; trying to do so will cause an error.
- In addition, the ALTER TABLE ADD column statement adds the new column at the end of the table.
How to add multiple columns in the existing table
Syntax:
ALTER TABLE table_name ADD (column_name_1 data_type constraint, column_name_2 data_type constraint, ... column_name_n data_type constraint);
..

- Database Overview
- What Is Oracle Database
- History of Oracle Database
- Why Oracle Database
- Features of Oracle Database
- Oracle Vs. SQL Server: Key Differences
- Oracle Vs. MySQL Server: Key Differences
- Oracle Vs. NoSQL
- Install Oracle Database Server
- Oracle Database Sample Schema
- Execute Sample Database
- Connect to SQL Developer and Other SQL Editor