Re: IF function? - Mailing list pgsql-general

From Harpreet Dhaliwal
Subject Re: IF function?
Date
Msg-id d86a77ef0704302259qb8ea1dcv985e02552e180d1@mail.gmail.com
Whole thread Raw
In response to IF function?  (novnov <novnovice@gmail.com>)
Responses Re: IF function?
List 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 by date:

Previous
From: David Fetter
Date:
Subject: Re: IF function?
Next
From: Paul Lambert
Date:
Subject: PG Books