メインコンテンツまでスキップ

bitmap_xor

bitmap_xor

説明​

lhs と rhs に固有の要素からなる集合を計算します。これは bitmap_or(lhs, rhs) と bitmap_and(lhs, rhs) の論理的な排他的論理和です(補集合)。

構文​

bitmap_xor(BITMAP lhs, BITMAP rhs)

例​

mysql> select bitmap_to_string(bitmap_xor(bitmap_from_string('1, 3'), bitmap_from_string('2'))) cnt;
+------+
|cnt |
+------+
|1,2,3 |
+------+

キーワード​

BITMAP_XOR, BITMAP