devxlogo

Add Multiple Columns to a Table in a Single Statement in Oracle SQL

Add Multiple Columns to a Table in a Single Statement in Oracle SQL

In Oracle, you can use the ALTER TABLE command to add columns to a table after it’s created.

The command also allows you to add multiple columns in the one statement.

The way to do this is to enclose all of the columns in brackets and separate the columns by a comma.

For example:

ALTER TABLE yourtableADD (  middle_name VARCHAR2(100),  hire_date DATE,  insurance_id NUMBER(6));

This means all the columns will be added in a single statement, reducing the amount of code you’ll need to write.

devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist