| От | Michael Fuhr |
|---|---|
| Тема | Re: Limiting with a left outer join |
| Дата | |
| Msg-id | 20060214053849.GA76710@winnie.fuhr.org обсуждение |
| Ответ на | Re: Limiting with a left outer join (Bill Moseley <moseley@hank.org>) |
| Список | pgsql-general |
On Sun, Feb 12, 2006 at 08:03:07AM -0800, Bill Moseley wrote: > BTW -- Is there a way to turn something like this into a view? The > 2 domain bind parameters will alway match, and the only other > input parameters are the two review mode booleans. That is, the > input to the query is a domain id, and if "review_mode" must be false. The usual way is to create a view that includes the columns you might want to restrict on, define the view to select all rows, then query the view with an appropriate WHERE clause. Another possibility is to create a set-returning function that accepts the relevant values as arguments and plugs them into the query. -- Michael Fuhr
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера