跳到主要内容
跳到主要内容

groupBitAnd

对一系列数字应用按位 AND 运算。

groupBitAnd(expr)

参数

expr – 结果为 UInt*Int* 类型的表达式。

返回值

UInt*Int* 类型的值。

示例

测试数据

binary     decimal
00101100 = 44
00011100 = 28
00001101 = 13
01010101 = 85

查询

SELECT groupBitAnd(num) FROM t

其中 num 是包含测试数据的列。

结果

binary     decimal
00000100 = 4
© . This site is unofficial and not affiliated with ClickHouse, Inc.