Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
How to DROP columns from an existing table in oracle
WhatsApp
Nipun Tomar
11y
5
k
0
0
25
Blog
In Oracle, the possibility to drop a column/columns in an existing table can be available only after the origin of oracle 8i. The column/columns in a table can be dropped either logically or physically, but most of the time we use the logic delete. And for this the "ALTER TABLE" command is used.
Syntax:
ALTER TABLE
table_name
UNUSED
(Col_name);
Assume the below
Customer
table:
Example to drop a single column:
ALTER TABLE
Customer
UNUSED
(Age);
Result
:
Example to drop Multiple column:
ALTER TABLE
Customer
UNUSED
(Age, Address, Country);
Result:
How to DROP columns from an existing table in oracle
Up Next
Oracle: The importance of enabling autobackup in RMAN
Ebook Download
View all
Introduction to Mongo DB
Read by 7.7k people
Download Now!
Learn
View all
Membership not found