Addition and subtraction on BIT type

Поиск
Список
Период
Сортировка
От Yasir Malik
Тема Addition and subtraction on BIT type
Дата
Msg-id Pine.LNX.4.58.0311161108090.26810@heineken.cs.stevens-tech.edu
обсуждение исходный текст
Список pgsql-sql
Hello,
Is there a way to do addition and subtraction on BIT types?  For example,
for
creat table test (a BIT(3));
insert into test values (B'101');

select a + 1 from test; fails

and select a::smallint + 1 from test; also fails.

In addition, is there a way to change the bit of a bit string?  For
example change a 1 to a 0 or vice versa.

Any suggestions?
Thanks,
Yasir


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

Предыдущее
От: "Randolf Richardson, DevNet SysOp 29"
Дата:
Сообщение: Re: Expressional Indexes
Следующее
От: Yasir Malik
Дата:
Сообщение: Re: Arrays - a good idea?