GROUP_BIT_OR
デスクリプション
単一の整数列または式内のすべての値に対してビット単位のOR演算を実行します。
Syntax
GROUP_BIT_OR(<expr>)
パラメータ
| Parameter | デスクリプション |
|---|---|
<expr> | 全てのINT型をサポートします |
Return 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 |
+-----------------------+