Re: Return Value of a Function

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Return Value of a Function
Дата
Msg-id 200402021536.00027.dev@archonet.com
обсуждение исходный текст
Ответ на Return Value of a Function  (Terry Lee Tucker <terry@esc1.com>)
Ответы Re: Return Value of a Function  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Monday 02 February 2004 14:36, Terry Lee Tucker wrote:
>
> I may have several other things wrong with this function, so my real
> question is, "Can I return a value of type RECORD?"

Yes, but you can't necessarily do anything with it (unless you're calling it
from another function).

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');

--
  Richard Huxton
  Archonet Ltd

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

Предыдущее
От: Alex
Дата:
Сообщение: Select Question
Следующее
От: Jan Wieck
Дата:
Сообщение: Re: DB cache size strategies