Re: replacing expresion in plpgsql

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: replacing expresion in plpgsql
Date: 2013-12-16 06:54:03
Message-ID: l8m81s$kop$1@ger.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

John R Pierce, 16.12.2013 01:23:
>> select current_timestamp, current_timestamp + interval '2' day;
>
> that should be interval '2 day' (note the ' moved), and for a variable number passed as a parameter, try...

Both are valid. interval '2' day is the ANSI SQL format though.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message John R Pierce 2013-12-16 08:08:24 Re: replacing expresion in plpgsql
Previous Message Juan Pablo L 2013-12-16 01:09:18 Re: replacing expresion in plpgsql