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

1. mysql> select bitmap_to_string(bitmap_subset_in_range(bitmap_from_string('1,2,3,4,5'), 0, 9)) value;
2. +-----------+
3. | value     |
4. +-----------+
5. | 1,2,3,4,5 |
6. +-----------+

8. mysql> select bitmap_to_string(bitmap_subset_in_range(bitmap_from_string('1,2,3,4,5'), 2, 3)) value;
9. +-------+
10. | value |
11. +-------+
12. | 2     |
13. +-------+

keywords

1. BITMAP_SUBSET_IN_RANGE,BITMAP_SUBSET,BITMAP