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 drop a column?

Re: how to drop a column?

From: Dmitry Pugachev <dev_at_ellink.ru>
Date: Wed, 30 Aug 2000 18:50:18 +0400
Message-ID: <967647079.135497@serval.elpskov.ru>

Hi, Dirk

You are right but IMHO not correct.

You could try command
CREATE TABLE TMP(...) AS SELECT ...
don't forget to eliminate the column and afterwards drop original table and rename TMP.

Or store appropriate table columns in text file and use SQL*Loader.

Yes you have to be very careful because of a routine around constraints, triggers etc. but it's still possible.

> Hello,
>
> "mike" <skyxx_at_263.net> schrieb:
> > i am beginer of oracle.i created a table ,now i must drop a column of
> > it,how can i do?
>
> that's not possible with Oracle smaller than version 8.1.5 I think:
>
> ALTER TABLE "Tablename" SET UNUSED ("Columnname") CASCADE CONSTRAINTS;
>
>
> Ciao, Dirk.
>
>
>
Received on Wed Aug 30 2000 - 09:50:18 CDT

Original text of this message

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