Re: Is there a RECORD[] type in plpgsql?

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: Is there a RECORD[] type in plpgsql?
Дата
Msg-id b42b73150907250629o3faa099iad76a044659bb7c8@mail.gmail.com
обсуждение исходный текст
Ответ на Is there a RECORD[] type in plpgsql?  (Nick Boutelier <namethisapp@gmail.com>)
Список pgsql-general
On Sat, Jul 25, 2009 at 2:42 AM, Nick Boutelier<namethisapp@gmail.com> wrote:
> Im using the same...
>
> FOR record_or_row IN query LOOP
>
> at the beginning of a function and at the end of a function. Is there
> a way to save the query results in a RECORD[] type so that I don't
> have to run the query twice?

yes (in postgresql 8.3).  This is often a little more convenient than
a temporary table.

merlin

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

Предыдущее
От: Sam Mason
Дата:
Сообщение: Re: Is there a RECORD[] type in plpgsql?
Следующее
От: Andreas Wenk
Дата:
Сообщение: Re: Disable databse listing for non-superuser (\l) ?