Re: I was spoiled by the MySQL timestamp field

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dennis Gearon <gearond(at)cvc(dot)net>
Cc: will trillich <will(at)serensoft(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: I was spoiled by the MySQL timestamp field
Date: 2003-01-24 15:55:26
Message-ID: 13482.1043423726@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dennis Gearon <gearond(at)cvc(dot)net> writes:
> What's the difference between 'now()' and 'current_timestamp' ?

None AFAIK. now() is historical Postgres usage, CURRENT_TIMESTAMP is
the SQL-spec-mandated spelling of the same functionality.

CURRENT_TIMESTAMP with an argument does something a bit different,
though.

http://www.ca.postgresql.org/users-lounge/docs/7.3/postgres/functions-datetime.html#FUNCTIONS-DATETIME-CURRENT

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message SZŰCS Gábor 2003-01-24 16:10:02 Re: 7.2.1: coalesce double-calls function?
Previous Message Jochem van Dieten 2003-01-24 15:51:19 Re: createlang and Schemas