Pular para o conteúdo

Devolve o índice (com base 1) de um elemento se a matriz contiver esse elemento.

func.array_indexof( <array>, <element> )
func.array_indexof([1, 2, 9], 9)
┌───────────────────────────────────┐
│ func.array_indexof([1, 2, 9], 9) │
├───────────────────────────────────┤
│ 3 │
└───────────────────────────────────┘
ARRAY_INDEXOF( <array>, <element> )
SELECT ARRAY_INDEXOF([1, 2, 9], 9);
┌─────────────────────────────┐
│ array_indexof([1, 2, 9], 9) │
├─────────────────────────────┤
│ 3 │
└─────────────────────────────┘