| От | Kev |
|---|---|
| Тема | Re: Using function like where clause |
| Дата | |
| Msg-id | 1186514282.434942.45940@m37g2000prh.googlegroups.com обсуждение исходный текст |
| Ответ на | Using function like where clause (Ranieri Mazili <rmazili@wgsystems.com.br>) |
| Список | pgsql-general |
On Aug 6, 3:44 pm, rmaz...@wgsystems.com.br (Ranieri Mazili) wrote: > Hello, > > I have 2 questions. > 1) Can I use a function that will return a string in a where clause like > bellow? > > select * > from table > where my_function_making_where() > and another_field = 'another_think' > > 2) Can I use a function that will return a string to return the list of > columns that I want to show like below? > > select my_function_making_list_of_columns() > from table > where field_test = 'mydatum' > > Thanks Look up the quote_ident() function in the docs, you'll likely need that for both cases. Kev
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера