Re: change the last bit - Mailing list pgsql-general

From Jean-Luc Lachance
Subject Re: change the last bit
Date
Msg-id 40F82DAC.5050305@sympatico.ca
Whole thread Raw
In response to change the last bit  (homecurr@yahoo.com)
List pgsql-general
select a & -2::int4;


homecurr@yahoo.com wrote:
> I have a int4 coloumn, and I want to change the last bit the the
> number in this column to 0. How can I do it?
>
> Thanks,
>
> John
>
> ---------------------------(end of broadcast)---------------------------
> TIP 7: don't forget to increase your free space map settings
>


pgsql-general by date:

Previous
From: Constantin Khatsckevich
Date:
Subject: varchar length... PHP
Next
From: Tony Li
Date:
Subject: Re: change the last bit