BITMAP_SUBSET_IN_RANGE
bitmap_subset_in_rangeβ
Descriptionβ
Syntaxβ
BITMAP BITMAP_SUBSET_IN_RANGE(BITMAP src, BIGINT range_start, BIGINT range_end)
Return subset in specified range (not include the range_end).
exampleβ
mysql> select bitmap_to_string(bitmap_subset_in_range(bitmap_from_string('1,2,3,4,5'), 0, 9)) value;
+-----------+
| value |
+-----------+
| 1,2,3,4,5 |
+-----------+
mysql> select bitmap_to_string(bitmap_subset_in_range(bitmap_from_string('1,2,3,4,5'), 2, 3)) value;
+-------+
| value |
+-------+
| 2 |
+-------+
keywordsβ
BITMAP_SUBSET_IN_RANGE,BITMAP_SUBSET,BITMAP