Re: adding fields to a table

Поиск
Список
Период
Сортировка
От Ian Barwick
Тема Re: adding fields to a table
Дата
Msg-id 200306261929.11092.barwick@gmx.net
обсуждение исходный текст
Ответ на Re: adding fields to a table  (Benjamin Jury <benjamin.jury@mpuk.com>)
Список 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 по дате отправления:

Предыдущее
От: Ron Johnson
Дата:
Сообщение: Re: PlPython
Следующее
От: Andrew Gould
Дата:
Сообщение: MS Access, pgsqlODBC and PostgreSQL in Linux via Crossover Office --> not reliable