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

From G. Anthony Reina
Subject Re: Is there a way to drop a column?
Date
Msg-id 39341549.CAB9A898@nsi.edu
Whole thread Raw
In response to Re: Is there a way to drop a column?  (Karel Zak <zakkr@zf.jcu.cz>)
List pgsql-general
Karel Zak wrote:

>
> > 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;
>

Thanks. That worked.

-Tony



pgsql-general by date:

Previous
From: Karel Zak
Date:
Subject: Re: Is there a way to drop a column?
Next
From: mikeo
Date:
Subject: Re: Re: [SQL] remove line type?