メインコンテンツまでスキップ

bitmap_union_int

bitmap_union_int

説明

TINYINT、SMALLINT、およびINT型の列の異なる値の数をカウントし、COUNT (DISTINCT expr)の合計を返します。

構文

BIGINT bitmap_union_int(expr)

パラメータ

expr: 列の式。サポートされている列の型はTINYINT、SMALLINT、およびINTです。

返り値

BIGINT型の値を返します。

mysql> select bitmap_union_int(k1) from tbl1;
+------------------------+
| bitmap_union_int(`k1`) |
+------------------------+
| 2 |
+------------------------+