Re: the behaviour of timestamp on postgres.

From: Doug McNaught <doug(at)mcnaught(dot)org>
To: Prabu Subroto <prabu_subroto(at)yahoo(dot)com>
Cc: Postgres General Milis <pgsql-general(at)postgresql(dot)org>
Subject: Re: the behaviour of timestamp on postgres.
Date: 2004-08-11 13:59:28
Message-ID: 87657pepxb.fsf@asmodeus.mcnaught.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Prabu Subroto <prabu_subroto(at)yahoo(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Eckermann 2004-08-11 14:20:14 Re: Replication options?
Previous Message Nick Barr 2004-08-11 13:39:34 POSIX RE starting with a (