Re: from not null field to nullable field?

Поиск
Список
Период
Сортировка
От Wim Ceulemans
Тема Re: from not null field to nullable field?
Дата
Msg-id 3976B081.3AC847A4@nice.be
обсуждение исходный текст
Ответ на from not null field to nullable field?  (Carolyn Lu Wong <carolyn@kss.net.au>)
Список pgsql-sql
Carolyn Lu Wong wrote:
> 
> I have a field in a table that has been defined 'not null'. Is it
> possible to remove this constraint? I don't see this option under 'alter
> table'.

update pg_attribute set attnotnull = 'f' where oid = oidofnotnullcolumn;
vacuum analyze;

Regards
Wim


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

Предыдущее
От: Wim Ceulemans
Дата:
Сообщение: Re: primary key question
Следующее
От: "Emils Klotins"
Дата:
Сообщение: test