Re: adding fields to a table - Mailing list pgsql-general

From Ian Barwick
Subject Re: adding fields to a table
Date
Msg-id 200306261929.11092.barwick@gmx.net
Whole thread Raw
In response to Re: adding fields to a table  (Benjamin Jury <benjamin.jury@mpuk.com>)
List pgsql-general
On Thursday 26 June 2003 18:34, Benjamin Jury wrote:
(...)
>
> You can use ALTER TABLE.
>
> ALTER TABLE <table> ADD [column] column type
>
> Can also rename columns, add constraints, change to NOT NULL, etc.
>
> However you cannot currently remove a column...

Oh yes you can:

ALTER TABLE tbl DROP COLUMN whatever

http://www.postgresql.org/docs/view.php?version=7.3&idoc=0&file=ddl-alter.html

IIRC it was introduced fairly recently (7.3?)

Ian Barwick
barwick@gmx.net


pgsql-general by date:

Previous
From: Ron Johnson
Date:
Subject: Re: PlPython
Next
From: Andrew Gould
Date:
Subject: MS Access, pgsqlODBC and PostgreSQL in Linux via Crossover Office --> not reliable