Re: Inline IF condition

From: Roberto Mello <rmello(at)cc(dot)usu(dot)edu>
To: Tapan Trivedi <tapan(dot)trivedi(at)princetonglobal(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Inline IF condition
Date: 2001-12-06 15:48:57
Message-ID: 20011206084857.A21559@cc.usu.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Mon, Dec 03, 2001 at 05:34:51PM +0530, Tapan Trivedi wrote:
> Hi all,
>
> Does Postgresql support DECODE() or IIF() functions like Oracle or SQLServer
> 2000 does ??

PostgreSQL supports the standard CASE...WHEN... that replaces DECODE.
Oracle supports CASE WHEN too, but Oracle users usually use the
Oracleisms counterparts.

I'm not familiar with IIF. What's it for?

-Roberto

P.S.: The PG docs have more info on CASE WHEN.

--
+----| http://fslc.usu.edu USU Free Software & GNU/Linux Club |------+
Roberto Mello - Computer Science, USU - http://www.brasileiro.net
http://www.sdl.usu.edu - Space Dynamics Lab, Developer
All in all, you're just another brick on the wall...

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Stephan Szabo 2001-12-06 16:25:11 Re: need some help understanding sloq query
Previous Message Esger Abbink 2001-12-06 13:34:08 Re: need some help understanding sloq query