Skip to content

Returns the intersection of two arrays.

func.array_intersect([1,2,3], [2,3,4])
func.array_intersect([1, 2, 3], [2, 3, 4])
┌───────┐
[2,3]
└───────┘
ARRAY_INTERSECT([1,2,3], [2,3,4])
SELECT ARRAY_INTERSECT([1, 2, 3], [2, 3, 4]);
┌───────┐
│ [2,3] │
└───────┘