Re: Needed function IF(expr, expr, expr)

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Needed function IF(expr, expr, expr)
Дата
Msg-id 20030906154338.GB24418@wolff.to
обсуждение исходный текст
Ответ на Needed function IF(expr, expr, expr)  ("Marek Lewczuk" <newsy@lewczuk.com>)
Ответы Re: Needed function IF(expr, expr, expr)  ("Marek Lewczuk" <newsy@lewczuk.com>)
Список pgsql-general
On Sat, Sep 06, 2003 at 14:55:12 +0100,
  Marek Lewczuk <newsy@lewczuk.com> wrote:
> Hello,
> I'm moving out from MySQL to PostgreSQL and there are some function
> which are not supported in PG so I'm trying to write my own functions.
> Currently I have big problem with function IF(), below the description
> of this function from MySQL manual.

You should be able to do what you want using CASE instead of IF.

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Needed function IF(expr, expr, expr)
Следующее
От: "Marek Lewczuk"
Дата:
Сообщение: Re: Needed function IF(expr, expr, expr)