pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Berndtsson <tomas@nocrew.org>
To: Franz J Fortuny <ffortuny@ivsol.com>
Cc: sqllist <pgsql-sql@postgresql.org>
Subject: Re: Standard syntax?
Date: 12 Oct 2000 19:54:43 +0200
Message-ID: <80lmvuc5cs.fsf@junk.nocrew.org> (raw)
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). 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?

It is not part of SQL92, and I don't think it's part of SQL-3
either. Many databases (PostgreSQL, MSSQL, Oracle, ...) have such
things though, but the syntax is different between them.

If you can do without them, that's what you should try to do.


Tomas



view thread (6+ messages)  latest in thread

Message-ID: <80lmvuc5cs.fsf@junk.nocrew.org>
Permalink:  ../80lmvuc5cs.fsf@junk.nocrew.org/
Also on:    postgresql.org/message-id/80lmvuc5cs.fsf@junk.nocrew.org

 · 

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 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: tomas@nocrew.org, ffortuny@ivsol.com
  Subject: Re: Standard syntax?
  In-Reply-To: <80lmvuc5cs.fsf@junk.nocrew.org>
  References: <00fb01c03474$193888c0$3167a8c0@chapur> <80lmvuc5cs.fsf@junk.nocrew.org>

* 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