pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ranieri Mazili <ranieri.oliveira@terra.com.br>
To: pgsql-general@postgresql.org
To: pgsql-sql@postgresql.org
Subject: Exec a text variable as select
Date: Mon, 18 Jun 2007 10:14:32 -0300
Message-ID: <46768538.9070909@terra.com.br> (raw)

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



view thread (2+ messages)  latest in thread

Message-ID: <46768538.9070909@terra.com.br>
Permalink:  ../46768538.9070909@terra.com.br/
Also on:    postgresql.org/message-id/46768538.9070909@terra.com.br

 · 

reply

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: ranieri.oliveira@terra.com.br, pgsql-general@postgresql.org
  Subject: Re: Exec a text variable as select
  In-Reply-To: <46768538.9070909@terra.com.br>

* 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