Re: IF function?

Поиск
Список
Период
Сортировка
От Harpreet Dhaliwal
Тема Re: IF function?
Дата
Msg-id d86a77ef0704302259qb8ea1dcv985e02552e180d1@mail.gmail.com
обсуждение исходный текст
Ответ на IF function?  (novnov <novnovice@gmail.com>)
Ответы Re: IF function?  ("Eddy D. Sanchez" <eddy.sanchez@gmail.com>)
Список pgsql-general
IF ( condition here)
 -- to do
ELSE
  -- to
END IF


On 5/1/07, novnov <novnovice@gmail.com> wrote:

Does postgresql have a built in IF function that allows one to eval a
condition and return one or another value? Like:

IIF(mybooleanfield = true, "It's true", "It's not true")


--
View this message in context: http://www.nabble.com/IF-function--tf3673523.html#a10264910
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

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

Предыдущее
От: David Fetter
Дата:
Сообщение: Re: IF function?
Следующее
От: Paul Lambert
Дата:
Сообщение: PG Books