Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Alter table

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
How do I delete a single column from an Oracle 8i table? I've tried using alter table tablename drop column columname in SQL WorkSheet but it generates a missing keyword error. Please help.
 

You can try this,
ALTER TABLE tablename DROP (column1);

You can also set the columns unused before dropping:

1. Will mark a column unused.

alter table <table_name> set unused (col1,col2,col3,...);

2. This will drop the column from table.
alter table <table_name> drop column (col1,col2,col3,...);
or
alter table <table_name> drop unused columns;

Hope this helps.


 
Sorry friends,
I want to reply for other question but i replied here by mistake.

Raj28.....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top