Re: Let-bindings in SQL statements

From: Jasen Betts <jasen(at)xnet(dot)co(dot)nz>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Let-bindings in SQL statements
Date: 2012-02-11 10:44:31
Message-ID: jh5gqf$mrl$6@reversiblemaps.ath.cx
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2012-01-26, David W Noon <dwnoon(at)ntlworld(dot)com> wrote:
>
> Try using CURRENT_TIMESTAMP instead. In fact, CURRENT_TIMESTAMP is
> more traditional SQL than now(). I don't have an ANSI standard handy,
> so I cannot be certain when now() was added, if ever; but I have been
> using CURRENT TIMESTAMP (space instead of vinculum) under DB2 for 20
> years or more.

The planner will rewrite CURRENT_TIMESTAMP to now()

:)

--
⚂⚃ 100% natural

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jasen Betts 2012-02-11 11:24:54 Re: URGENT: temporary table not recognized?
Previous Message Jasen Betts 2012-02-11 10:42:15 Re: Let-bindings in SQL statements