Skip to content

Returns the position of a string within a comma-separated list.

func.find_in_set(<str>, <strlist>)
func.find_in_set('b', 'a,b,c')
┌───┐
2
└───┘
FIND_IN_SET(<str>, <strlist>)
SELECT FIND_IN_SET('b', 'a,b,c');
┌───┐
2
└───┘