BITMAP_COUNT
bitmap_count
description
Syntax
BITMAP BITMAP_COUNT(BITMAP lhs)
返回输入bitmap的个数。
example
mysql> select bitmap_count(to_bitmap(1)) cnt;
+------+
| cnt |
+------+
| 1 |
+------+
mysql> select bitmap_count(bitmap_and(to_bitmap(1), to_bitmap(1))) cnt;
+------+
| cnt |
+------+
| 1 |
+------+
keywords
BITMAP_COUNT