From: Kenneth Gonsalves <lawgon@thenilgiris.com>
To: Andreas Kretschmer <akretschmer@despammed.com>
To: pgsql-sql@postgresql.org
Subject: Re: [despammed] sql can i substitute
Date: Fri, 17 Dec 2004 18:31:18 +0530
Message-ID: <0412171831181R.06834@thenilgiris.com> (raw)
In-Reply-To: <20041217122445.GA19602@Pinguin.wug-glas.de>
References: <0412171655451H.06834@thenilgiris.com>
<0412171748151J.06834@thenilgiris.com>
<20041217122445.GA19602@Pinguin.wug-glas.de>
On Friday 17 December 2004 05:54 pm, Andreas Kretschmer wrote:
> Yes, simple:
>
> test=# select name, case
> test-# when fruit = 1 then 'good'
> test-# when fruit = 2 then 'bad'
> test-# when fruit = 3 then 'rotten' end as fruit from fruit;
can one do the same thing for an 'insert' statement?
kg
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: lawgon@thenilgiris.com, akretschmer@despammed.com
Subject: Re: [despammed] sql can i substitute
In-Reply-To: <0412171831181R.06834@thenilgiris.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