Re: syntax question

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jeff Eckermann <jeff_eckermann(at)yahoo(dot)com>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, James Cooper <jim(at)luckydigital(dot)com>, pgsql-sql(at)postgresql(dot)org
Subject: Re: syntax question
Date: 2003-02-24 15:30:14
Message-ID: 3492.1046100614@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Jeff Eckermann <jeff_eckermann(at)yahoo(dot)com> writes:
> --- Josh Berkus <josh(at)agliodbs(dot)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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message mallah 2003-02-24 15:51:37 Re: Help with query involving aggregation and joining.
Previous Message Jeff Eckermann 2003-02-24 15:17:40 Re: syntax question