Skip to content

Returns the position of the first occurrence of an element (1-indexed).

func.array_position([10, 20, 30], 20)
func.array_position([10, 20, 30], 20)
┌───┐
2
└───┘
ARRAY_POSITION([10, 20, 30], 20)
SELECT ARRAY_POSITION([10, 20, 30], 20);
┌───┐
2
└───┘