> ## 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

> Count the number of different values ​​in columns of type TINYINT, SMALLINT and INT, return the sum of COUNT (DISTINCT expr) same.

Count the number of different values ​​in columns of type TINYINT, SMALLINT and INT, return the sum of COUNT (DISTINCT expr) same.

## Syntax

```Haskell theme={null}
BIGINT bitmap_union_int(expr)
```

### Parameters

`expr`: column expression. The supported column type is TINYINT, SMALLINT and INT.

## Return value

Returns a value of the BIGINT type.

## Examples

```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.