Re: Is there a way to drop a column? - Mailing list pgsql-general

From Karel Zak
Subject Re: Is there a way to drop a column?
Date
Msg-id Pine.LNX.3.96.1000530202423.31890A-100000@ara.zf.jcu.cz
Whole thread Raw
In response to Is there a way to drop a column?  ("G. Anthony Reina" <reina@nsi.edu>)
List pgsql-general
On Tue, 30 May 2000, G. Anthony Reina wrote:

> Somehow some columns from one of my tables "melded" with another table.
> I'm trying to figure out how this happened, but in the meantime, I'd
> like to be able to delete the extra columns in the table.
>
> I can see a way to "alter table ... add column". Is there a way to
> "alter table ... drop column"?

 SELECT without_a_column INTO xxx FROM tab;
 DROP TABLE tab;
 ALTER TABLE xxx RENAME TO tab;

 OK?

                    Karel


pgsql-general by date:

Previous
From: Philip Hallstrom
Date:
Subject: Any way to send email from "within" PostgreSQL?
Next
From: "G. Anthony Reina"
Date:
Subject: Re: Is there a way to drop a column?