clickHouse高阶函数-countEqual(arr,x) 返回数组中与x相同的元素的个数
例:查询数组中3的个数
SELECT countEqual([1, 2, 3, 3], 3)
┌─countEqual([1, 2, 3, 3], 3)─┐
│ 2 │
└─────────────────────────────┘
1 rows in set. Elapsed: 0.010 sec.
clickHouse高阶函数-countEqual(arr,x) 返回数组中与x相同的元素的个数
例:查询数组中3的个数
SELECT countEqual([1, 2, 3, 3], 3)
┌─countEqual([1, 2, 3, 3], 3)─┐
│ 2 │
└─────────────────────────────┘
1 rows in set. Elapsed: 0.010 sec.