Re: the behaviour of timestamp on postgres.

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: the behaviour of timestamp on postgres.
Дата
Msg-id 20040811080939.V17280@megazone.bigpanda.com
обсуждение исходный текст
Ответ на the behaviour of timestamp on postgres.  (Prabu Subroto <prabu_subroto@yahoo.com>)
Список pgsql-general
On Wed, 11 Aug 2004, Prabu Subroto wrote:

> How is the behaviour of the timestamp on postgres? I

It's pretty much just a plain datatype.

> have define the datatype of the column with
> "timestamp" but each time I inserted a new record into
> the table than the timestamp column (with datatype
> "timestamp") stays empty.
>
> How can I make the postgres complete the value of the
> timestamp field automatically?

If you want insert time setting, you can use a default
clause on the column.

If you want update time modification, you can write a
before trigger that updates the column.

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

Предыдущее
От: Nick Barr
Дата:
Сообщение: Re: POSIX RE starting with a (
Следующее
От: Tom Lane
Дата:
Сообщение: Re: psql: immediately exit after an error?