Pass where clause to a function

Поиск
Список
Период
Сортировка
От Andrew Bartley
Тема Pass where clause to a function
Дата
Msg-id CAA3RN+wQQijWyNND3B5Az2HNpSCv8ZsC3eBA5nt19TDbptNRGA@mail.gmail.com
обсуждение исходный текст
Ответы Re: Pass where clause to a function
Список pgsql-general
Hi all,

Is it possible to create a view or foreign table that will do something like this

select * from table_x
where x_id = 10;

passing the where "x_id = 10" to a function

sorta like this

select * from api_function('x = 10')

or

 select * from api_function(10)

passing the result set back to the original select....

Thanks


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

Предыдущее
От: John R Pierce
Дата:
Сообщение: Re: Trigger function cannot reference field name with capital letter
Следующее
От: John R Pierce
Дата:
Сообщение: Re: Pass where clause to a function