Re: Generic/Ad-Hoc Select Function

Поиск
Список
Период
Сортировка
От Terry Lee Tucker
Тема Re: Generic/Ad-Hoc Select Function
Дата
Msg-id 200606031508.55484.terry@esc1.com
обсуждение исходный текст
Ответ на Generic/Ad-Hoc Select Function  ("Roy W Bradley" <rbradley@fusiion.com>)
Список pgsql-novice
On Saturday 03 June 2006 02:17 pm, "Roy W Bradley" <rbradley@fusiion.com> thus
communicated:
--> I am new to Postgresql and was wondering if it is possible to create an
 ad-hoc select query function, where the table name, and the where clause
 were passed to the function and it returned a result set for the table? -->
--> Thanks
--> Roy
-->

You can generate dynamic SELECT statements. See the docs at:
http://www.postgresql.org/docs/8.1/static/plpgsql-statements.html#PLPGSQL-STATEMENTS-EXECUTING-DYN

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

Предыдущее
От: "Roy W Bradley"
Дата:
Сообщение: Generic/Ad-Hoc Select Function
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: Generic/Ad-Hoc Select Function