| От | Jean-Christian Imbeault |
|---|---|
| Тема | PL/PGSQL: another Q |
| Дата | |
| Msg-id | 3E27A3CC.90503@mega-bucks.co.jp обсуждение исходный текст |
| Ответы |
Re: PL/PGSQL: another Q
|
| Список | pgsql-general |
I've gone through the books I have and searched the web but can't find an answer to this question. Is it possible to have a plpgsql function return a result set (rows)? If so what do I declare the return type as? I know it sounds silly but the reason would be that I have these extremely long queries that I hate typing. I'd love to just create a function, do a "SELECT myfunc(1,2,3,4,5,6,7)" and have the function spew out the result set (rows). So far I can only find example on how to get PL/PGSQL to return a single value. Can this be done in PL/PGSQL? Any pointers to reference material greatly appreciated! Jc
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера