Skip to main content

BITOR

Description​

Used to perform a bitwise OR operation on two integers.

Integer range: TINYINT, SMALLINT, INT, BIGINT, LARGEINT

Syntax​

BITOR( <lhs>, <rhs>)

Parameters​

parameterdescription
<lhs>The first BOOLEAN value to be evaluated
<rhs>The second BOOLEAN value to be evaluated

Return Value​

Returns the result of the OR operation on two integers.

Examples​

select BITOR(3,5), BITOR(4,7);
+---------+---------+
| (3 | 5) | (4 | 7) |
+---------+---------+
| 7 | 7 |
+---------+---------+