Aller au contenu

Renvoie la position d’une chaîne dans une liste séparée par des virgules.

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 │
└───┘