Re: cast bool/int - Mailing list pgsql-sql

From Achilleas Mantzios
Subject Re: cast bool/int
Date
Msg-id 200903231015.11528.achill@matrix.gatewaynet.com
Whole thread Raw
In response to cast bool/int  (Zdravko Balorda <zdravko.balorda@siix.com>)
List pgsql-sql
Στις Monday 23 March 2009 09:59:12 ο/η Zdravko Balorda έγραψε:
>
> Hi,
> I need a casting operator from boolean to integer,
> tu put in ALTER TABLE statment after USING.
>

How about
CASE WHEN 't' THEN 1 ELSE 0 END

> Any ideas? Thanks.
>
> Zdravko
>
>



--
Achilleas Mantzios


pgsql-sql by date:

Previous
From: Zdravko Balorda
Date:
Subject: cast bool/int
Next
From: Achilleas Mantzios
Date:
Subject: Re: cast bool/int