From: | Juan Pablo L <jpablolorenzetti(at)gmail(dot)com> |
---|---|
To: | Andreas Brandl <ml(at)3(dot)141592654(dot)de> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: replacing expresion in plpgsql |
Date: | 2013-12-16 01:09:18 |
Message-ID: | CABSYDabBNEQw4QAsMmr5m=cWCRo7=8fuBYnNiaaakRckAOgxXA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
thank you very much for clarifying .....
On 15 December 2013 19:02, Andreas Brandl <ml(at)3(dot)141592654(dot)de> wrote:
> John,
>
> ----- Ursprüngliche Mail -----
> > On 12/15/2013 4:17 PM, Andreas Brandl wrote:
> > > 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...
>
> # select current_timestamp + interval '2' day;
> # select current_timestamp + interval '2' minute;
>
> all valid, but seems to only work in SQL (and not plpgsql) context.
>
> Regards,
> Andreas
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Kellerer | 2013-12-16 06:54:03 | Re: replacing expresion in plpgsql |
Previous Message | Andreas Brandl | 2013-12-16 01:02:18 | Re: replacing expresion in plpgsql |