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: Help! How to delete a column?

Re: Help! How to delete a column?

From: Martin J. Malley <mmalley_at_radiks.net>
Date: 1997/08/02
Message-ID: <01bc9ef4$2fdaab80$967e8acd@gateway>#1/1

> I have added a column which I don't really want in a table. How can I
> delete it?

You need to drop and recreate the table without the column. If you need to save data, you might consider something like:

RENAME badtablename TO temptablename;
CREATE TABLE badtablename AS SELECT col1, col2 ... FROM temptablename; DROP TABLE temptablename; Received on Sat Aug 02 1997 - 00:00:00 CDT

Original text of this message

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