pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Radhika Sambamurti <radhika@88thstreet.com>
To: pgsql-sql@postgresql.org
Subject: using EXECUTE on Selects
Date: Wed, 11 Jul 2007 12:41:21 -0400 (EDT)
Message-ID: <25474.63.118.86.10.1184172081.squirrel@www.88thstreet.com> (raw)

Hi,

Here is my need:

I have to select data by building up the where clause:
example: WHERE firm = 'nnn'
         WHERE firm = 'nnn' AND symbol = 'bbb'
         WHERE date BETWEEN 'startdate' AND 'enddate' AND symbol = 'bbb'

And so on.

I was hoping to write a function where I can build up my where clause
(dynamic sql) and use the EXECUTE command with it. But I just read that
the SELECT INTO has not been implemented for use with EXECUTE.

Is there a way to select data using EXECUTE?

Thanks.
Radhika


-- 
It is all a matter of perspective. You choose your view by choosing where
to stand.
Larry Wall
---




view thread (6+ messages)  latest in thread

Message-ID: <25474.63.118.86.10.1184172081.squirrel@www.88thstreet.com>
Permalink:  ../25474.63.118.86.10.1184172081.squirrel@www.88thstreet.com/
Also on:    postgresql.org/message-id/25474.63.118.86.10.1184172081.squirrel@www.88thstreet.com

 · 

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: radhika@88thstreet.com
  Subject: Re: using EXECUTE on Selects
  In-Reply-To: <25474.63.118.86.10.1184172081.squirrel@www.88thstreet.com>

* 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