Re: Return Value of a Function

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Return Value of a Function
Дата
Msg-id 11059.1075741089@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Return Value of a Function  (Richard Huxton <dev@archonet.com>)
Список pgsql-general
Richard Huxton <dev@archonet.com> writes:
> You could return a SETOF myrowtype where the set contains only one row -
> that's probably what you're after. Then you can do things like:

> SELECT * FROM set_returning_function(1,'a');

You're confusing SETOF with returning a composite type --- actually they
are orthogonal features that can be used separately.  Obviously the docs
could stand to be improved in this area :-(

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Return Value of a Function
Следующее
От: Terry Lee Tucker
Дата:
Сообщение: Re: Return Value of a Function