メインコンテンツまでスキップ
バージョン: Latest-4.1

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 |
+------------------------+
Rocky the happy otterStarRocks Assistant

AI generated answers are based on docs and other sources. Please test answers in non-production environments.