Re: Using perform in plpgsql throws compile errors

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Using perform in plpgsql throws compile errors
Дата
Msg-id 1601.1096051621@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Using perform in plpgsql throws compile errors  (mail <mail@peneios.com>)
Список pgsql-novice
mail <mail@peneios.com> writes:
>     PERFORM SELECT * FROM transactions x INNER JOIN tx_items i ON(x.id =
> i.tx_id) where i.archive_id=aID and x.status=\'valid\' and x.person_id=pID;

You need "PERFORM * FROM transactions ...".  No SELECT keyword.

Looking at the manual, I see it could be worded better.  The example is
correct but the description is misleading :-(

            regards, tom lane

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

Предыдущее
От: mail
Дата:
Сообщение: Using perform in plpgsql throws compile errors
Следующее
От: Kumar S
Дата:
Сообщение: creating a view from multiple tables (13 tables)