Re: Returning a table from a function, that requires multipleselects?

Поиск
Список
Период
Сортировка
Искать
От
Guyren Howe
Тема
Re: Returning a table from a function, that requires multipleselects?
Дата
Msg-id
CE611735-31DF-4C07-88C7-399A0774D845@gmail.com
Ответ на
Список
Дерево обсуждения
Returning a table from a function, that requires multiple selects? stan <stanb@panix.com>
Re: Returning a table from a function, that requires multipleselects? stan <stanb@panix.com>
Re: Returning a table from a function, that requires multipleselects? Rob Sargent <robjsargent@gmail.com>
Re: Returning a table from a function, that requires multipleselects? Guyren Howe <guyren@gmail.com>
Re: Returning a table from a function, that requires multipleselects? Rob Sargent <robjsargent@gmail.com>
Re: Returning a table from a function, that requires multiple selects? Tom Lane <tgl@sss.pgh.pa.us>
On Aug 30, 2019, at 13:03 , stan <stanb@panix.com> wrote:

I need to encapsulate, what are basically 2 related function calls into a single
function. The result of each of th calls is a date type.

y current thinking is to return a 2 row table with the 2 dates in it. But, I seem to
be having issues getting this to work.

Is it possible for a function to return a table with results from multiple
queries?

You could just return a tuple VALUES(a, b). Or you could define a type to return if you want to get fancy.
В списке pgsql-general по дате отправления
От: Rob Sargent
Дата:
От: Rob Sargent
Дата:
FAQ