Re: Exec a text variable as select - Mailing list pgsql-general

From A. Kretschmer
Subject Re: Exec a text variable as select
Date
Msg-id 20070618131900.GH11387@a-kretschmer.de
Whole thread Raw
In response to Exec a text variable as select  (Ranieri Mazili <ranieri.oliveira@terra.com.br>)
List pgsql-general
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

pgsql-general by date:

Previous
From: Ranieri Mazili
Date:
Subject: Exec a text variable as select
Next
From: Stefan Schwarzer
Date:
Subject: Loop through all views with PHP