メインコンテンツまでスキップ
バージョン: Latest-3.4

bitmap_xor

lhsrhs に固有の要素からなる集合を計算します。これは論理的には bitmap_andnot(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