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
INTEGERorBIGINTexpression. - op2: An
INTEGERorBIGINTexpression.
Examples
BITWISE_OR exampleSELECT BITWISE_OR(7, 4)
-- 7
SELECT BITWISE_OR(1, 2)
-- 3
SELECT BITWISE_OR(7, NULL)
-- null