Re: syntax question

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: syntax question
Дата
Msg-id 3492.1046100614@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: syntax question  (Jeff Eckermann <jeff_eckermann@yahoo.com>)
Ответы Re: syntax question  (Josh Berkus <josh@agliodbs.com>)
Список pgsql-sql
Jeff Eckermann <jeff_eckermann@yahoo.com> writes:
> --- Josh Berkus <josh@agliodbs.com> wrote:
>> you cannot select the results of
>> a query directly into a 
>> RECORD variable without a loop.

> Pardon??

I think Josh meant to say you can't select the results of a *dynamically
constructed* query without a loop --- that is, you need FOR ... EXECUTE.
A plain EXECUTE doesn't support plpgsql's notion of SELECT INTO.
        regards, tom lane


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

Предыдущее
От: Jeff Eckermann
Дата:
Сообщение: Re: syntax question
Следующее
От:
Дата:
Сообщение: Re: Help with query involving aggregation and joining.