Softerra LDAP Administrator HelpShow AllHide All

BITWISE_OR

Takes two numbers as operands and does OR on every bit of two numbers. The result of OR is 1 if any of the two bits is 1.

Syntax

BITWISE_OR (expression, expression)

Arguments

expression - expression of a numeric data type.

Examples

The following example shows the results of using bitwise OR operation between 58 and 198.

BITWISE_OR (58, 198)

0011 1010
1100 0110
---- ----
1111 1110

The binary representation of 58 is 0011 1010. The binary representation of 198 is 1100 0110. Performing the bitwise OR operation on these two values produces the binary result 1111 1110, which is decimal 254.