Skip to main content

GROUP_BIT_OR

Description​

Performs a bitwise OR operation on all values in a single integer column or expression.

Syntax​

GROUP_BIT_OR(<expr>)

Parameters​

ParameterDescription
<expr>Supports all INT types

Return Value​

Returns an integer value

Example​

select * from group_bit;
+-------+
| value |
+-------+
| 3 |
| 1 |
| 2 |
| 4 |
+-------+
mysql> select group_bit_or(value) from group_bit;
+-----------------------+
| group_bit_or(`value`) |
+-----------------------+
| 7 |
+-----------------------+