Re: Standard syntax? - Mailing list pgsql-sql

From Tom Lane
Subject Re: Standard syntax?
Date
Msg-id 27090.971379146@sss.pgh.pa.us
Whole thread Raw
In response to Standard syntax?  ("Franz J Fortuny" <ffortuny@ivsol.com>)
List pgsql-sql
"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


pgsql-sql by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Standard syntax?
Next
From: Nelson Brito
Date:
Subject: Problem whith Stored queries