Re: Multiple result set to be returned in procedure/function

Поиск
Список
Период
Сортировка
От Thomas Kellerer
Тема Re: Multiple result set to be returned in procedure/function
Дата
Msg-id 6fb840d6-1c12-6111-d32d-17cc1c6379d2@gmx.net
обсуждение исходный текст
Ответ на Re: Multiple result set to be returned in procedure/function  ("Daniel Verite" <daniel@manitou-mail.org>)
Список pgsql-general
Daniel Verite schrieb am 19.11.2020 um 13:06:
>>    arthur=> select * from get_results();
>>        get_results
>>    --------------------
>>     <unnamed portal 1>
>>     <unnamed portal 2>
>
> Friendlier names may be used by assigning them in the function,
> i.e. plpgsql does support:
>
>  declare
>   c1 refcursor := 'mycursorname';
>
> Then the caller might simply hardcode the cursor names in the FETCH
> statements rather than building them dynamically at runtime.

Ah, cool.

That is indeed much easier to work with (in case I ever have to)

Thomas



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

Предыдущее
От: "Daniel Verite"
Дата:
Сообщение: Re: Multiple result set to be returned in procedure/function
Следующее
От: "Zwettler Markus (OIZ)"
Дата:
Сообщение: Linux package upgrade without dependency conflicts