跳到主要内容

bitmap_contains

bitmap_contains

description

Syntax

BOOLEAN BITMAP_CONTAINS(BITMAP bitmap, BIGINT input)

计算输入值是否在Bitmap列中,返回值是Boolean值.

example

mysql> select bitmap_contains(to_bitmap(1),2) cnt;
+------+
| cnt |
+------+
| 0 |
+------+

mysql> select bitmap_contains(to_bitmap(1),1) cnt;
+------+
| cnt |
+------+
| 1 |
+------+

keywords

BITMAP_CONTAINS,BITMAP