bit_and
Returns bitwise AND of two 32-bit integers.
bit_and
(in n1 integer,
in n2 integer);
Description
The function returns bitwise AND of two given integers.
On 64-bit platforms, both arguments are intentionally truncated to 32 bits
to maintain compatibility.
Examples
Using bitwise-AND
select bit_and (18, 6);
2
select bit_and (-18, -6);
-22