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

keyword

  1. BITMAP_SUBSET_IN_RANGE,BITMAP_SUBSET,BITMAP