Re: can Function return a row ???

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: can Function return a row ???
Дата
Msg-id 3CDFD507.7030005@joeconway.com
обсуждение исходный текст
Ответ на Re: can Function return a row ???  (Tahira Aslam <tahira_aslam@yahoo.com>)
Список pgsql-general
Tahira Aslam wrote:
>   Thanks Joe for your timly help..but still i have a little confusion.I
> read postgresql 7.2 Documentation for PL/pgsql (chapter 23)...its about
> "Cursors" but it says something like this also
>
> *"A more interesting possibility is that a function can return a
> reference to a cursor it has set up,allowing the caller to read the
> rows. This provides one way of returning a rowset from a function" *
>
> plz I need further guidance in this regard..
>
> Thanks
>
> Tahira Aslam

I don't think there is an example in the 7.2 docs, but see:
http://developer.postgresql.org/docs/postgres/plpgsql-cursors.html

I think this also works in 7.2.

HTH,

Joe



В списке pgsql-general по дате отправления:

Предыдущее
От: Jan Wieck
Дата:
Сообщение: Re: Trigger performance
Следующее
От: Oliver Elphick
Дата:
Сообщение: Re: Use of OIDS as primary keys