Re: CASE - Mailing list pgsql-general

From Tino Wildenhain
Subject Re: CASE
Date
Msg-id 48AAB5EE.10308@wildenhain.de
Whole thread Raw
In response to Re: CASE  ("c k" <shreeseva.learning@gmail.com>)
List pgsql-general
c k wrote:
> Hi,
> I want to create a function as follows:
>
> case variable=value1
>    SQL statements
> case variable=value2
>   SQL statements
> case else
> end of case
>
Looks like you want to use pl/pgsl and IF ... THEN ... ELSE instead?

Cheers
Tino

Attachment

pgsql-general by date:

Previous
From: Ow Mun Heng
Date:
Subject: Re: What's size of your PostgreSQL Database?
Next
From: Peter Eisentraut
Date:
Subject: Re: NOT DEFERRABLE as default, why and how to manage it.