Re: change the last bit

Поиск
Список
Период
Сортировка
От ljb
Тема Re: change the last bit
Дата
Msg-id ccvdct$c7e$1@news.hub.org
обсуждение исходный текст
Список pgsql-general
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?

Last bit = least significant bit (LSB)?
  update mytable set thecolumn = thecolumn & ~1 where ...

В списке pgsql-general по дате отправления: