Can a function return more then one table?

Поиск
Список
Период
Сортировка
От Mike Christensen
Тема Can a function return more then one table?
Дата
Msg-id CABs1bs3d2vRmv9WtFfNnxu2j30Tc4F-P-f3Yooyif0imSLfMqg@mail.gmail.com
обсуждение исходный текст
Ответы Re: Can a function return more then one table?  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-general
I would like to write a function that returns one row from one table,
and about 10 rows or so from another table..

Is there a clean way to do this, or am I better off making two separate queries?

I'm thinking maybe I can use OUT parameters for the first table, and
the return value for the second table?  However, I have no idea what
the syntax would be like.

Mike

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

Предыдущее
От: Kevin Duffy
Дата:
Сообщение: pgAdmin - Query - out of memory for query result
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: Can a function return more then one table?