Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: How to delete column in a table ???

Re: How to delete column in a table ???

From: Tanel Põder <tanel.poder_at_abs.eee>
Date: Wed, 29 Jul 1998 09:55:50 +0300
Message-ID: <35BEC776.D1CC79ED@abs.eee>


Macrino wrote:
>
> Can anyone help me how to delete unwanted column in a table ?

suppose you have table some_table with cols: col1, col2, col3, col4 and you want to remove col3 from it:

create table temp as select col1, col2, col4 from some_table; drop table some_table;
rename temp to some_table;

oracle 8.1 should have "alter table remove column ..." option too.

tanel. Received on Wed Jul 29 1998 - 01:55:50 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US