Re: Dynamic SQL with pgsql, how to? - Mailing list pgsql-general

From Andre Lopes
Subject Re: Dynamic SQL with pgsql, how to?
Date
Msg-id k2q18f98e681005040116zd215905dr7266926c5bbf5091@mail.gmail.com
Whole thread Raw
In response to Re: Dynamic SQL with pgsql, how to?  (Maximilian Tyrtania <maximilian.tyrtania@byte-employer.de>)
List pgsql-general
Thanks for the reply,

It is working now.

Best Regards.


On Tue, May 4, 2010 at 7:44 AM, Maximilian Tyrtania <maximilian.tyrtania@byte-employer.de> wrote:
Am 03.05.2010 um 23:50 schrieb Andre Lopes:

> Thanks for the reply's,
>
> I need to do a Dynamic SELECT INTO. There is a way of doing it?

Yes. Plpgsql supports this:

EXECUTE command-string [ INTO [STRICT] target ] [ USING expression [, ... ] ];

See http://developer.postgresql.org/pgdocs/postgres/plpgsql-statements.html

Max

Maximilian Tyrtania Software-Entwicklung
Dessauer Str. 6-7
10969 Berlin
Tel.:    ++49/30/48827-952
Mobil: 0152/292 707 36
email: maximilian.tyrtania@byte-employer.de

pgsql-general by date:

Previous
From: Leif Biberg Kristensen
Date:
Subject: Re: GeSHi module for Postgresql?
Next
From: Grzegorz Jaśkiewicz
Date:
Subject: Re: information_schema.parameters