From: A. Kretschmer <andreas.kretschmer@schollglas.com>
To: pgsql-general@postgresql.org
To: pgsql-sql@postgresql.org
Subject: Re: Exec a text variable as select
Date: Mon, 18 Jun 2007 15:19:00 +0200
Message-ID: <20070618131900.GH11387@a-kretschmer.de> (raw)
In-Reply-To: <46768538.9070909@terra.com.br>
References: <46768538.9070909@terra.com.br>
am Mon, dem 18.06.2007, um 10:14:32 -0300 mailte Ranieri Mazili folgendes:
> Hello,
>
> I'm creating a function that will create a select statement into a
> while, this select will be stored into a text variable, after while ends
> I need to execute this query stored into variable, on SQLSERVER I can do:
> EXEC(text_variable)
> How can I do this on Postgres?
With EXECUTE.
Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: andreas.kretschmer@schollglas.com, pgsql-general@postgresql.org
Subject: Re: Exec a text variable as select
In-Reply-To: <20070618131900.GH11387@a-kretschmer.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox