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

# bitmap_xor

> 计算两个 Bitmap 中不重复元素所构成的集合。

计算两个 Bitmap 中不重复元素所构成的集合，逻辑上等价于 `bitmap_andnot(bitmap_or(lhs, rhs), bitmap_and(lhs, rhs))`(补集)。

## 语法

```Haskell theme={null}
bitmap_xor(lhs, rhs)
```

## 参数说明

`lhs`: 支持的数据类型为 BITMAP。

`rhs`: 支持的数据类型为 BITMAP。

## 返回值说明

返回值的数据类型为 BITMAP。

## 示例

```plain text theme={null}
mysql> select bitmap_to_string(bitmap_xor(bitmap_from_string('1, 3'), bitmap_from_string('2'))) cnt;
+------+
|cnt   |
+------+
|1,2,3 |
+------+
```


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