Re: the behaviour of timestamp on postgres.

Поиск
Список
Период
Сортировка
От Doug McNaught
Тема Re: the behaviour of timestamp on postgres.
Дата
Msg-id 87657pepxb.fsf@asmodeus.mcnaught.org
обсуждение исходный текст
Ответ на the behaviour of timestamp on postgres.  (Prabu Subroto <prabu_subroto@yahoo.com>)
Ответы Re: the behaviour of timestamp on postgres.  (Prabu Subroto <prabu_subroto@yahoo.com>)
Список pgsql-general
Prabu Subroto <prabu_subroto@yahoo.com> writes:

> How can I make the postgres complete the value of the
> timestamp field automatically?

Add a DEFAULT NOW() clause to the column definition.

-Doug
--
Let us cross over the river, and rest under the shade of the trees.
   --T. J. Jackson, 1863

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

Предыдущее
От: Nick Barr
Дата:
Сообщение: POSIX RE starting with a (
Следующее
От: Nick Barr
Дата:
Сообщение: Re: POSIX RE starting with a (