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 →
返回给定数组的交集(即返回所有给定数组中都存在的项)。
groupArrayIntersect(x)
x
Any
Array
-- 使用 Memory 引擎创建表 CREATE TABLE numbers ( a Array(Int32) ) ENGINE = Memory; -- 插入样本数据 INSERT INTO numbers VALUES ([1,2,4]), ([1,5,2,8,-1,0]), ([1,5,7,5,8,2]); SELECT groupArrayIntersect(a) AS intersection FROM numbers;
┌─intersection──────┐ │ [1, 2] │ └───────────────────┘
此页面对您有帮助吗?