using EXECUTE on Selects

Поиск
Список
Период
Сортировка
От Radhika Sambamurti
Тема using EXECUTE on Selects
Дата
Msg-id 25474.63.118.86.10.1184172081.squirrel@www.88thstreet.com
обсуждение исходный текст
Ответы Re: using EXECUTE on Selects  ("Rodrigo De León" <rdeleonp@gmail.com>)
Re: using EXECUTE on Selects  (Andrew Sullivan <ajs@crankycanuck.ca>)
Re: using EXECUTE on Selects  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Список 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


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



В списке pgsql-sql по дате отправления:

Предыдущее
От: "A. Kretschmer"
Дата:
Сообщение: Re: linux
Следующее
От: "Radhika Sambamurti"
Дата:
Сообщение: using EXECUTE on Selects