Name
bit_and — Returns bitwise AND of two 32-bit integers.
Synopsis
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.
Return Types
Integer.
Examples
Example 24.23. Using bitwise-AND
select bit_and (18, 6); 2 select bit_and (-18, -6); -22