using EXECUTE on Selects

From: "Radhika Sambamurti" <radhika(at)88thstreet(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: using EXECUTE on Selects
Date: 2007-07-11 16:44:02
Message-ID: 25976.63.118.86.10.1184172242.squirrel@www.88thstreet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

Browse pgsql-sql by date

  From Date Subject
Next Message Rodrigo De León 2007-07-11 16:49:10 Re: using EXECUTE on Selects
Previous Message Radhika Sambamurti 2007-07-11 16:41:21 using EXECUTE on Selects