Re: function for current date-time

From: Bricklen Anderson <banderson(at)presinet(dot)com>
To: Harpreet Dhaliwal <harpreet(dot)dhaliwal01(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: function for current date-time
Date: 2006-10-16 19:02:34
Message-ID: 4533D74A.6020706@presinet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Harpreet Dhaliwal wrote:
> Hi,
> I have a timestamp field in my table and want to set a default value of
> current date/time for it.
> What should i enter as its default value? is there any function like
> now() in postgres?
>
> Thanks,
> ~Harpreet

http://www.postgresql.org/docs/8.1/interactive/functions-datetime.html#FUNCTIONS-DATETIME-CURRENT

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Richard Broersma Jr 2006-10-16 19:02:35 Re: difference b/w text and varchar datatypes
Previous Message Richard Broersma Jr 2006-10-16 18:58:08 Re: difference b/w text and varchar datatypes