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

# bitmap_has_any

> Calculates whether there are intersecting elements between two Bitmap columns, and the return value is Boolean value.

Calculates whether there are intersecting elements between two Bitmap columns, and the return value is Boolean value.

## Syntax

```Haskell theme={null}
B00LEAN BITMAP_HAS_ANY(BITMAP lhs, BITMAP rhs)
```

## Examples

```Plain Text theme={null}
MySQL > select bitmap_has_any(to_bitmap(1),to_bitmap(2)) cnt;
+------+
| cnt  |
+------+
|    0 |
+------+

MySQL > select bitmap_has_any(to_bitmap(1),to_bitmap(1)) cnt;
+------+
| cnt  |
+------+
|    1 |
+------+
```

## keyword

BITMAP\_HAS\_ANY,BITMAP


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