FIELD

Returns the index position of a value in a list of arguments.

Analyze Syntax

func.field(<str>, <val1>, <val2>[, ...])

Analyze Examples

func.field('b', 'a', 'b', 'c')

┌───┐
 2  
└───┘

SQL Syntax

FIELD(<str>, <val1>, <val2>[, ...])

SQL Examples

SELECT FIELD('b', 'a', 'b', 'c');

┌───┐
 2  
└───┘