bitmap_andnot
返回存在于 lhs
但不存在于 rhs
中的 bitmap 值,并返回新的 bitmap。
语法
bitmap_andnot(BITMAP lhs, BITMAP rhs)
示例
mysql> select bitmap_to_string(bitmap_andnot(bitmap_from_string('1, 3'), bitmap_from_string('2'))) cnt;
+------+
|cnt |
+------+
|1,3 |
+------+
mysql> select bitmap_to_string(bitmap_andnot(bitmap_from_string('1,3,5'), bitmap_from_string('1'))) cnt;
+------+
|cnt |
+------+
|3,5 |
+------+
关键词
BITMAP_ANDNOT, BITMAP