Re: case statement as inline function?

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: case statement as inline function?
Дата
Msg-id 200403241832.19501.dev@archonet.com
обсуждение исходный текст
Ответ на case statement as inline function?  (Mike Nolan <nolan@gw.tssi.com>)
Ответы Re: case statement as inline function?
Список pgsql-general
On Wednesday 24 March 2004 16:33, Mike Nolan wrote:
>
> Is there any way to treat it like an inline function so that I could write
> something like the following (highly simplified):

I think 7.4 will inline simple SQL functions. Your CASE looks like a good
candidate.

>    select case when A=1 then 1 when B=1 then 2 else null end
>    as mailtype, memname from master
>    where mailtype is not null;

--
  Richard Huxton
  Archonet Ltd

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

Предыдущее
От: "Grace C. Unson"
Дата:
Сообщение: Transaction Isolation Level
Следующее
От: Shachar Shemesh
Дата:
Сообщение: Re: ole db