Re: Returning a table from a function, that requires multipleselects?
В списке pgsql-general по дате отправления:
| От | stan |
|---|---|
| Тема | Re: Returning a table from a function, that requires multipleselects? |
| Дата | |
| Msg-id | 20190830221225.GA12804@panix.com обсуждение исходный текст |
| Ответ на | Returning a table from a function, that requires multiple selects? (stan <stanb@panix.com>) |
| Список | pgsql-general |
On Fri, Aug 30, 2019 at 04:03:15PM -0400, stan 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?
>
Got it working, so yes this can be done.
Next I have to figure out how to configure the next function to accept this table.
Error message says something about configuring it to accept a record.
--
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
-- Benjamin Franklin
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера