Getting started
User guides
Administration guides
Reference guides
Resources
Updated Aug 04, 2022
Send us feedback
bit_or
Returns the bitwise OR of all input values in the group.
OR
bit_or(expr) [FILTER ( WHERE cond ) ]
expr: An expression that evaluates to an integral numeric.
expr
cond: An optional boolean expression filtering the rows used for aggregation.
cond
The result type matches the argument type.
> SELECT bit_or(col) FROM VALUES (3), (5) AS tab(col); 7 > SELECT bit_or(col) FILTER(WHERE col < 8) FROM VALUES (3), (5), (8) AS tab(col); 7
bit_and aggregate function
bit_xor aggregate function
some aggregate function