Re: SYSDATE in PostgreSQL !? - Mailing list pgsql-admin

From scott.marlowe
Subject Re: SYSDATE in PostgreSQL !?
Date
Msg-id Pine.LNX.4.33.0403011418490.681-100000@css120.ihs.com
Whole thread Raw
In response to Re: SYSDATE in PostgreSQL !?  (Bjoern Metzdorf <bm@turtle-entertainment.de>)
List pgsql-admin
On Mon, 1 Mar 2004, Bjoern Metzdorf wrote:

> Louie Kwan wrote:
>
> > If there is no SYSDATE defined in PostgreSQL , what can I do ?
>  >
>  > createTimeStamp       DATE default (SYSDATE)
>
> Perhaps NOW() ist what you are looking for?
>
> createTimeStamp       DATE default 'NOW()'

I don't think you want the quotes around now(), otherwise it will always
insert the same date / time each time.


pgsql-admin by date:

Previous
From: Bjoern Metzdorf
Date:
Subject: Re: SYSDATE in PostgreSQL !?
Next
From: Stefan Holzheu
Date:
Subject: Re: Problems with pg_dump