alter table question for 7.2

Поиск
Список
Период
Сортировка
От Matthias Leopold
Тема alter table question for 7.2
Дата
Msg-id 49C916A0.5070006@aic.at
обсуждение исходный текст
Ответы Re: alter table question for 7.2
Список pgsql-novice
hi,

can anyone tell me the right way to do something like

alter table foo add column bar int not null default '0';

in a postgresql 7.2 database?

all i managed to do was to add the column and alter it to have "default
'0'".
neither where the fields filled with "0" (like they are when i do this
in postgresql 8.1) nor did i manage to add the "not null" constraint.

thx for help
matthias

В списке pgsql-novice по дате отправления:

Предыдущее
От: Alan Hodgson
Дата:
Сообщение: Re: Question on returning Rows in a stored proc
Следующее
От: Andreas Kretschmer
Дата:
Сообщение: Re: alter table question for 7.2