From: | Mike Christensen <mike(at)kitchenpc(dot)com> |
---|---|
To: | Tony Theodore <tony(dot)theodore(at)gmail(dot)com> |
Cc: | "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: PERFORM statement |
Date: | 2013-07-09 04:45:59 |
Message-ID: | CABs1bs15B=tQAPaUy5_K0ShuYc=g8PsW652xuMmy=C-_hxZoOw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Ah ok that makes sense. The FAQ wasn't exactly clear about that.
On Mon, Jul 8, 2013 at 9:38 PM, Tony Theodore <tony(dot)theodore(at)gmail(dot)com>wrote:
>
> On 09/07/2013, at 2:20 PM, Mike Christensen <mike(at)kitchenpc(dot)com> wrote:
>
>
> PERFORM MyInsert(1,101,'2013-04-04','2013-04-04',2,'f' );
>
> I get the error:
>
> ERROR: syntax error at or near "PERFORM"
> SQL state: 42601
> Character: 1
>
> Is the FAQ out of date or was this feature removed? I'm using 9.2.1.
> Thanks!
>
>
> I believe PERFORM is a PL/pgSQL construct, not an SQL one. You'd need to
> execute it inside a function.
>
> Cheers,
>
> Tony
>
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Darren Duncan | 2013-07-09 08:08:44 | Re: Longest Common Subsequence in Postgres - Algorithm Challenge |
Previous Message | Tony Theodore | 2013-07-09 04:38:55 | Re: PERFORM statement |