Logical and for int4?

Поиск
Список
Период
Сортировка
Искать

Logical and for int4?

От:
Chris Griffin <cgriffin@websales.com>
Дата:
I want to store some masks as ints and then use them in a query. Is there
an and operator? If not can I define one?


Re: [SQL] Logical and for int4?

От:
Chris Griffin <cgriffin@websales.com>
Дата:
I wrote a c routine to 'and' to integers. I defined a function the defined
the '&' operator. So now I can do the following:
 where (int_field & int_mask) <> 0 ....
I turned out to be much easier that I expected. If anyone is interested in
this or possibly other function/operators let me know.


FAQ