Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write one example for the following ALTER TABLE statement: Add a new column Add primary key constraint Add foreign key constraint Modify an existing column

Write one example for the following ALTER TABLE statement:
•Add a new column
•Add primary key constraint
•Add foreign key constraint
•Modify an existing column definition
•Define a default value for the new column
•Drop a column•Rename a column
•Change table to read-only status


Step by Step Solution

3.31 Rating (154 Votes )

There are 3 Steps involved in it

Step: 1

Example 1Add a new column ALTER TABLE employees ADD COLUMN age INT Example ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle 12c SQL

Authors: Joan Casteel

3rd edition

1305251032, 978-1305251038

Students also viewed these Databases questions

Question

What is the purpose of a role in Oracle 12c?

Answered: 1 week ago