From: Jie Liang <jliang@ipinc.com>
To: Franz J Fortuny <ffortuny@ivsol.com>
Cc: sqllist <pgsql-sql@postgresql.org>
Subject: Re: Standard syntax?
Date: Thu, 12 Oct 2000 11:19:37 -0700
Message-ID: <39E600B9.F484679@ipinc.com> (raw)
References: <00fb01c03474$193888c0$3167a8c0@chapur>
Hi,
This is not SQL92, I believe it's an extention of Pg , Oracle uses 'decode' to
implement if-then elsif then-else structure.
Franz J Fortuny wrote:
> 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). For those who
> have had experience in other SQL servers, is this a "standard" or ANSI 9X
> compatible syntax or should I refrain from such syntax if I want my
> statements to be transportable from SQL Server to SQL Server?
>
> Best regards,
>
> Franz Fortuny
--
Jie LIANG
Internet Products Inc.
10350 Science Center Drive
Suite 100, San Diego, CA 92121
Office:(858)320-4873
jliang@ipinc.com
www.ipinc.com
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: jliang@ipinc.com, ffortuny@ivsol.com
Subject: Re: Standard syntax?
In-Reply-To: <39E600B9.F484679@ipinc.com>
References: <00fb01c03474$193888c0$3167a8c0@chapur> <39E600B9.F484679@ipinc.com>
* 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