pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Roberto Mello <rmello@cc.usu.edu>
To: Tapan Trivedi <tapan.trivedi@princetonglobal.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Inline IF condition
Date: Thu, 6 Dec 2001 08:48:57 -0700
Message-ID: <20011206084857.A21559@cc.usu.edu> (raw)
In-Reply-To: <01120317345201.01361@pse061_linux>
References: <01120317345201.01361@pse061_linux>

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...



view thread (3+ messages)  latest in thread

Message-ID: <20011206084857.A21559@cc.usu.edu>
Permalink:  ../20011206084857.A21559@cc.usu.edu/
Also on:    postgresql.org/message-id/20011206084857.A21559@cc.usu.edu

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: rmello@cc.usu.edu, tapan.trivedi@princetonglobal.com
  Subject: Re: Inline IF condition
  In-Reply-To: <20011206084857.A21559@cc.usu.edu>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox