Using function like where clause

Поиск
Список
Период
Сортировка
От Ranieri Mazili
Тема Using function like where clause
Дата
Msg-id 46B77A2B.4090804@terra.com.br
обсуждение исходный текст
Ответы Re: Using function like where clause  (Michael Glaesemann <grzm@seespotcode.net>)
Re: Using function like where clause  (Ragnar <gnari@hive.is>)
Список pgsql-sql
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

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

Предыдущее
От: Rodrigo De León
Дата:
Сообщение: Re: Best Fit SQL query statement
Следующее
От: Michael Glaesemann
Дата:
Сообщение: Re: Using function like where clause