| От | Michael Fuhr |
|---|---|
| Тема | Re: Pagination with Output Variables? |
| Дата | |
| Msg-id | 20050223002657.GA80291@winnie.fuhr.org обсуждение |
| Ответ на | Pagination with Output Variables? ("Steve - DND" <postgres@digitalnothing.com>) |
| Список | pgsql-sql |
On Tue, Feb 22, 2005 at 04:29:30PM -0700, Steve - DND wrote: > Can a function return two type results? So that the first type would be just > the total number of records, and the second type would be the resultset of > customers? The function could return a set of cursors, one for the query that returns the total number of records and one for the resultset. The 8.0 documentation has an example that should work in earlier versions as well (except for the dollar quoting): http://www.postgresql.org/docs/8.0/static/plpgsql-cursors.html See the example at the bottom of the page. -- Michael Fuhr http://www.fuhr.org/~mfuhr/
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера