Re: Valid Input Syntax for Type DATE

Поиск
Список
Период
Сортировка
От Rich Shepard
Тема Re: Valid Input Syntax for Type DATE
Дата
Msg-id alpine.LNX.2.00.1202291341190.15032@salmo.appl-ecosys.com
обсуждение исходный текст
Ответ на Re: Valid Input Syntax for Type DATE  (Andrew Gould <andrewlylegould@gmail.com>)
Список pgsql-general
On Wed, 29 Feb 2012, Andrew Gould wrote:

>>> If the column is null'able, I think you can use the keyword: DEFAULT
>>> insert into(id, xdate) values (1, DEFAULT);

>> Or... use NULL:
>> insert into(id, xdate) values (1, NULL);

> NULL works, but one advantage of using DEFAULT is that you won't have to
> worry which columns are set to NOT NULL.  This assumes that the NOT NULL
> columns have default values assigned to them, which is a good idea.

   Thank you both.

Rich


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

Предыдущее
От: Ben Chobot
Дата:
Сообщение: Re: Re: One transaction by connection - commit subdetails without release master transaction?
Следующее
От: Alban Hertroys
Дата:
Сообщение: Re: Re: One transaction by connection - commit subdetails without release master transaction?