From: Tom Lane <tgl@sss.pgh.pa.us>
To: Franz J Fortuny <ffortuny@ivsol.com>
Cc: sqllist <pgsql-sql@postgresql.org>
Subject: Re: Standard syntax?
Date: Thu, 12 Oct 2000 15:32:26 -0400
Message-ID: <27090.971379146@sss.pgh.pa.us> (raw)
In-Reply-To: <00fb01c03474$193888c0$3167a8c0@chapur>
References: <00fb01c03474$193888c0$3167a8c0@chapur>
"Franz J Fortuny" <ffortuny@ivsol.com> writes:
> I have been using (with success) this SQL statement in PostgreSQL:
> select col1,
> case when col2 = true then
> col3
> else
> col4
> end as colw,
> colM
> where .... etc.
> The above syntax, however, does not work for Interbase (6.01).
CASE expressions are specified in SQL92, but they're labeled as an
"intermediate SQL" feature rather than an "entry SQL" feature.
So I'm not surprised that some other DBMSes don't have them.
Entry SQL is a pretty impoverished subset (no VARCHAR type, to take
a random example), so nearly everyone implements at least some
intermediate- and full-SQL features. But exactly which ones is
highly variable.
regards, tom lane
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: tgl@sss.pgh.pa.us, ffortuny@ivsol.com
Subject: Re: Standard syntax?
In-Reply-To: <27090.971379146@sss.pgh.pa.us>
References: <00fb01c03474$193888c0$3167a8c0@chapur> <27090.971379146@sss.pgh.pa.us>
* 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