From: Giovanni Giuffrida <giovanni@cs.ucla.edu>
To: pgsql-sql@postgresql.org
Subject: CASE...WHEN... END
Date: Wed, 07 Oct 1998 12:59:17 -0700
Message-ID: <361BC814.FA29D288@cs.ucla.edu> (raw)
Hello,
I wonder if the CASE (available in SQL-92) statement is available in
Postgres, or if there is any similar way of solving the problem.
The syntax of case is:
CASE WHEN <cond1> THEN <value1>
WHEN <cond2> THEN <value2>
:
ELSE <else-value>
END
Thank you,
Giovanni
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: giovanni@cs.ucla.edu
Subject: Re: CASE...WHEN... END
In-Reply-To: <361BC814.FA29D288@cs.ucla.edu>
References: <361BC814.FA29D288@cs.ucla.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