bit_xor() 是一个系统函数,用于计算所有非 NULL 输入值的按位异或 OR。
bit_xor() 在 PostgreSQL 14 中添加。
用法
bit_xor ( smallint ) → smallint bit_xor ( integer ) → integer bit_xor ( bigint ) → bigint bit_xor ( bit ) → bit
其他数据库中的bit_xor()
- DB2: BIT_XOR 例程
- MySQL: BIT_XOR(expr) [over_clause]
- MariaDB: BIT_XOR
变更历史
- PostgreSQL 14
- 已添加(提交 f9a0392e)
参考资料
- PostgreSQL 文档: 通用聚合函数
