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: Igor Kirasirov <kir_at_aix.krid.crimea.ua>
Date: Thu, 30 Jul 1998 17:21:58 GMT
Message-ID: <35C0ABB6.45C0C566@aix.krid.crimea.ua>


Tanel Põder wrote:
>
> 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;
>

In this case you must be careful with existing constraints on changed table

--

With best regards,
Igor Kirasirov

                    --oOo--

   Igor Kirasirov            mailto:kir_at_aix.krid.crimea.ua       
 Simferopol, Crimea          voice : work  +38-0652-521-032
     Ukraine                         home  +38-0652-275-956
Received on Thu Jul 30 1998 - 12:21:58 CDT

Original text of this message

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