Re: [SQL] Using function like where clause

Поиск
Список
Период
Сортировка
От Michael Glaesemann
Тема Re: [SQL] Using function like where clause
Дата
Msg-id C7D5863E-42A0-4D38-972E-04EDF8ADD726@seespotcode.net
обсуждение исходный текст
Ответ на Using function like where clause  (Ranieri Mazili <ranieri.oliveira@terra.com.br>)
Список pgsql-general
On Aug 6, 2007, at 14:44 , 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'

Probably. What have you tried? What does the documentation say? If
you're having trouble with a specific function, please provide the
code and hopefully we can work it out.

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

Probably not. What have you tried? What does the documentation say?

A couple of minutes in psql would probably be faster than sending an
email to the list.

Michael Glaesemann
grzm seespotcode net



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

Предыдущее
От: "Keaton Adams"
Дата:
Сообщение: Re: Template zero xid issue
Следующее
От: Tom Lane
Дата:
Сообщение: Re: 8.1.2 select for update issue