Re: Returning a table from a function, that requires multipleselects?
В списке pgsql-general по дате отправления:
| От | Rob Sargent |
|---|---|
| Тема | Re: Returning a table from a function, that requires multipleselects? |
| Дата | |
| Msg-id | 4E2CEFF7-7FBF-43B2-A407-5B7A67BCA4AB@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 multiple selects?
|
| Список | pgsql-general |
On Aug 30, 2019, at 2:09 PM, Guyren Howe <guyren@gmail.com> wrote: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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера