BITMAP_CONTAINS
bitmap_containsβ
descriptionβ
Syntaxβ
BOOLEAN BITMAP_CONTAINS(BITMAP bitmap, BIGINT input)
Calculates whether the input value is in the Bitmap column and returns a Boolean value.
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