Re: null constraints and defaults

Поиск
Список
Период
Сортировка
От Matt Miller
Тема Re: null constraints and defaults
Дата
Msg-id 1120076709.3095.25.camel@dbamm01-linux
обсуждение исходный текст
Ответ на null constraints and defaults  (elein@varlena.com (elein))
Ответы Re: null constraints and defaults  (elein@varlena.com (elein))
Список pgsql-general
On Wed, 2005-06-29 at 13:04 -0700, elein wrote:
> default constraint
> ...
> elein=# insert into nulldefault values (NULL);
> ERROR:  null value in column "one" violates not-null constraint

I think the idea of a DEFAULT value is to tell the DB what to supply
only if you omit the column from the insert statement altogether.  If
you deliberately call for a NULL, the DB will try to oblige.

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

Предыдущее
От: Sven Willenberger
Дата:
Сообщение: Re: PostgreSQL's vacuumdb fails to allocate memory for
Следующее
От: elein@varlena.com (elein)
Дата:
Сообщение: Re: null constraints and defaults