Passer au contenu principal

groupBitAnd

Introduit dans : v1.1.0 Applique un ET bit à bit à des séries de nombres. Syntaxe
groupBitAnd(expr)
Alias : BIT_AND Arguments
  • expr — Expression de type (U)Int*. (U)Int*
Valeur renvoyée Renvoie une valeur de type (U)Int*. (U)Int* Exemples Exemple d’opération ET bit à bit
Query
CREATE TABLE t (num UInt32) ENGINE = Memory;
INSERT INTO t VALUES (44), (28), (13), (85);

-- Test data:
-- binary     decimal
-- 00101100 = 44
-- 00011100 = 28
-- 00001101 = 13
-- 01010101 = 85

SELECT groupBitAnd(num) FROM t;
Response
-- Result:
-- binary     decimal
-- 00000100 = 4

┌─groupBitAnd(num)─┐
│                4 │
└──────────────────┘
Dernière modification le 25 juin 2026