FW: execute dynamic strings. need help.

Поиск
Список
Период
Сортировка
От Stefan.Ardeleanu@siveco.ro
Тема FW: execute dynamic strings. need help.
Дата
Msg-id E383500F7C4E70448157685481BF824801A9E846@internets3.main.siveco.ro
обсуждение исходный текст
Ответы Re: FW: execute dynamic strings. need help.  (Richard Huxton <dev@archonet.com>)
Список pgsql-general
I have a function with 3 parameters (select clause, where clause and order by clause (last two are optionally clauses). This clauses apply to a given table. For example, the table table1

and the function table1_rwc (read by where clause).
Given, let's say, the followings values select_clause = '*', where_clause 'id = 1' and the order_by clause = 'id', it will be generate the result set of the following query:

select * from Table1 where id = 1 order by id

I know I must use execute and prepare syntax, but I don't know how to create the function.
Can you help me, please.

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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: Is there a way to implicitly grant privileges to an implicitly created sequence?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: migration