| От | Michael Fuhr |
|---|---|
| Тема | Re: returning multiple values from a plpgsql function? |
| Дата | |
| Msg-id | 20050609210322.GA83073@winnie.fuhr.org обсуждение |
| Ответ на | returning multiple values from a plpgsql function? ("Celia McInnis" <celia@drmath.ca>) |
| Список | pgsql-novice |
On Thu, Jun 09, 2005 at 02:42:21PM -0500, Celia McInnis wrote: > > Is there any way to return multiple values from a plpgsql function? Ideally > I'd like to be able to return two arrays and a scalar value rather than > having to pack them into a single longer array. One way is to return a custom type; another way is to return a cursor. See the documentation and the list archives for examples. Here are some links to pages in the 8.0.x documentation that have relevant examples: http://www.postgresql.org/docs/8.0/static/plpgsql-cursors.html#PLPGSQL-CURSOR-USING http://www.postgresql.org/docs/8.0/static/plpgsql-porting.html#PLPGSQL-PORTING-EX3 -- Michael Fuhr http://www.fuhr.org/~mfuhr/
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера