> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# bitmap_union_int

> 计算 TINYINT、SMALLINT 和 INT 类型列中不同值的个数，返回值与 COUNT(DISTINCT expr) 相同。

聚合函数，计算 TINYINT，SMALLINT 和 INT 类型的列中不同值的个数，返回值和 COUNT(DISTINCT expr) 相同。

## 语法

```Haskell theme={null}
BITMAP_UNION_INT(expr)
```

## 参数说明

* `expr`：列表达式，支持 TINYINT，SMALLINT 和 INT 类型的列。

## 返回值说明

返回值的数据类型为 BIGINT。

## 示例

```Plaintext theme={null}
mysql> select bitmap_union_int(k1) from tbl1;
+------------------------+
| bitmap_union_int(`k1`) |
+------------------------+
|                      2 |
+------------------------+
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.