Re: How do I get query result(select e.g.) from a dynamic command(EXECUTE)? - Mailing list pgsql-general

From Richard Huxton
Subject Re: How do I get query result(select e.g.) from a dynamic command(EXECUTE)?
Date
Msg-id 200402191304.31213.dev@archonet.com
Whole thread Raw
In response to How do I get query result(select e.g.) from a dynamic command(EXECUTE)?  ("Wei Wang" <ww220@cam.ac.uk>)
List pgsql-general
On Thursday 19 February 2004 11:50, Wei Wang wrote:
> Hi,
>
> I want to do a select in dynamic command, something like:
>
[snip]
> I know that SELECT INTO doesn't support dynamic command, EXECUTE does. But
> if I EXECUTE a select query, how do I get
> the select result from it?


FOR record | row IN EXECUTE text_expression LOOP
    statements
END LOOP;

It's in the manuals, but that's about all they say on the subject
--
  Richard Huxton
  Archonet Ltd

pgsql-general by date:

Previous
From: "Wei Wang"
Date:
Subject: Re: How do I get query result(select e.g.) from a dynamic command(EXECUTE)?
Next
From: "Wei Wang"
Date:
Subject: Refer to n'th field of a table?