Re: Using function like where clause

Поиск
Список
Период
Сортировка
От Ragnar
Тема Re: Using function like where clause
Дата
Msg-id 1186510837.5778.403.camel@localhost.localdomain
обсуждение исходный текст
Ответ на Using function like where clause  (Ranieri Mazili <ranieri.oliveira@terra.com.br>)
Список pgsql-sql
On mán, 2007-08-06 at 16:44 -0300, Ranieri Mazili wrote:
> 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'

you could have your function return a boolean instead of a string


> 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'

no

gnari



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

Предыдущее
От: Ragnar
Дата:
Сообщение: Re: Range of caracters
Следующее
От: "Andrej Ricnik-Bay"
Дата:
Сообщение: Re: Restricting columns by users