Re: [despammed] sql can i substitute - Mailing list pgsql-sql

From Kenneth Gonsalves
Subject Re: [despammed] sql can i substitute
Date
Msg-id 0412171831181R.06834@thenilgiris.com
Whole thread Raw
In response to Re: [despammed] sql can i substitute  (Andreas Kretschmer <akretschmer@despammed.com>)
Responses Re: [despammed] sql can i substitute
List pgsql-sql
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


pgsql-sql by date:

Previous
From: Kenneth Gonsalves
Date:
Subject: Re: sql can i substitute
Next
From: Achilleus Mantzios
Date:
Subject: Re: [despammed] sql can i substitute