Skip to main content
Edit this page

groupBitAnd

一連の数値に対してビット単位のANDを適用します。

groupBitAnd(expr)

引数

exprUInt*またはInt*型の結果となる式。

戻り値

UInt*またはInt*型の値。

テストデータ:

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

クエリ:

SELECT groupBitAnd(num) FROM t

ここで、numはテストデータを含むカラムです。

結果:

binary     decimal
00000100 = 4