pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedExec a text variable as select
2+ messages / 2 participants
[nested] [flat]
* Exec a text variable as select
@ 2007-06-18 13:14 Ranieri Mazili <ranieri.oliveira@terra.com.br>
2007-06-18 13:19 ` Re: Exec a text variable as select A. Kretschmer <andreas.kretschmer@schollglas.com>
0 siblings, 1 reply; 2+ messages in thread
From: Ranieri Mazili @ 2007-06-18 13:14 UTC (permalink / raw)
To: pgsql-general@postgresql.org; pgsql-sql
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?
I appreciate any help
Thanks
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Exec a text variable as select
2007-06-18 13:14 Exec a text variable as select Ranieri Mazili <ranieri.oliveira@terra.com.br>
@ 2007-06-18 13:19 ` A. Kretschmer <andreas.kretschmer@schollglas.com>
0 siblings, 0 replies; 2+ messages in thread
From: A. Kretschmer @ 2007-06-18 13:19 UTC (permalink / raw)
To: pgsql-general@postgresql.org; pgsql-sql
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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2007-06-18 13:19 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-06-18 13:14 Exec a text variable as select Ranieri Mazili <ranieri.oliveira@terra.com.br>
2007-06-18 13:19 ` A. Kretschmer <andreas.kretschmer@schollglas.com>
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