Re: replacing expresion in plpgsql - Mailing list pgsql-general

From Thomas Kellerer
Subject Re: replacing expresion in plpgsql
Date
Msg-id l8m81s$kop$1@ger.gmane.org
Whole thread Raw
In response to Re: replacing expresion in plpgsql  (John R Pierce <pierce@hogranch.com>)
Responses Re: replacing expresion in plpgsql  (John R Pierce <pierce@hogranch.com>)
List 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.






pgsql-general by date:

Previous
From: Juan Pablo L
Date:
Subject: Re: replacing expresion in plpgsql
Next
From: John R Pierce
Date:
Subject: Re: replacing expresion in plpgsql