Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
ClickHouse launches Claude-powered Agents and House Mates partner program at Open House 2026 Read more →
对一组数值进行按位 与 运算。
与
groupBitAnd(expr)
BIT_AND
expr
(U)Int*
CREATE TABLE t (num UInt32) ENGINE = Memory; INSERT INTO t VALUES (44), (28), (13), (85); -- 测试数据: -- 二进制 十进制 -- 00101100 = 44 -- 00011100 = 28 -- 00001101 = 13 -- 01010101 = 85 SELECT groupBitAnd(num) FROM t;
-- 结果: -- 二进制 十进制 -- 00000100 = 4 ┌─groupBitAnd(num)─┐ │ 4 │ └──────────────────┘
此页面对您有帮助吗?