Re: PERFORM statement

Поиск
Список
Период
Сортировка
От Mike Christensen
Тема Re: PERFORM statement
Дата
Msg-id CABs1bs15B=tQAPaUy5_K0ShuYc=g8PsW652xuMmy=C-_hxZoOw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: PERFORM statement  (Tony Theodore <tony.theodore@gmail.com>)
Список 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.theodore@gmail.com> wrote:

On 09/07/2013, at 2:20 PM, Mike Christensen <mike@kitchenpc.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



В списке pgsql-general по дате отправления:

Предыдущее
От: Tony Theodore
Дата:
Сообщение: Re: PERFORM statement
Следующее
От: Darren Duncan
Дата:
Сообщение: Re: Longest Common Subsequence in Postgres - Algorithm Challenge