Re: returning multiple resultset?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: returning multiple resultset?
Дата
Msg-id 10638.1076880063@sss.pgh.pa.us
обсуждение исходный текст
Ответ на returning multiple resultset?  (iseyfi@vt.edu (ismail))
Список pgsql-sql
iseyfi@vt.edu (ismail) writes:
> I am fairly new to PostgreSQL and I am right now converting a database
> from SQL server. SQL server can return multiple select statements in
> the function body. Is there any way to return a function with two
> different resultsets?

You can fake it in some cases by returning opened cursors.  See the
plpgsql docs' discussion of working with cursors.  Of course this will
only work for resultsets that you can specify as a SQL query.
        regards, tom lane


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

Предыдущее
От: "Senthil Kumar S"
Дата:
Сообщение: writing a dynamic sql
Следующее
От: Tomasz Myrta
Дата:
Сообщение: Re: ORDER BY TIMESTAMP_column ASC, NULL first