Skip to main content

Categories: Bitwise

BITWISE_OR

Returns the bitwise OR of two integer expressions. Returns the same type as the input (INT for INT, BIGINT for BIGINT). Returns NULL if any argument is NULL.

Syntax​

BITWISE_OR(op1 NUMERIC, op2 NUMERIC) → NUMERIC​

  • op1: An INTEGER or BIGINT expression.
  • op2: An INTEGER or BIGINT expression.

Examples

BITWISE_OR example
SELECT BITWISE_OR(7, 4)
-- 7
BITWISE_OR example
SELECT BITWISE_OR(1, 2)
-- 3
BITWISE_OR with a NULL argument
SELECT BITWISE_OR(7, NULL)
-- null