跳到主要内容
版本: 最新版本-3.5

bitmap_remove

从 Bitmap 值 lhs 中删除 input,并返回结果集。

语法

bitmap_remove(BITMAP lhs, BIGINT input)

示例

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

mysql> select bitmap_to_string(**bitmap_remove**(bitmap_from_string('1,3,5'), 6)) cnt;
+------+
|cnt |
+------+
|1,3,5 |
+------+

关键词

BITMAP_REMOVE, BITMAP