7
The FIELD function returns the index (position) of string arguments (str1, str2, str3, ….)
9
It returns 0 if the str value is not found.
11
If each argument is a string, all arguments will be compared as strings, whereas if arguments are numbers, they will be compared as numbers.
13
Otherwise, the arguments are compared as double.
15
If str is NULL, the return value is 0 because NULL fails equality comparison with any value. FIELD() is the complement of ELT(). ::
17
SELECT FIELD('ej', 'Hej', 'ej', 'Heja', 'hej', 'foo');
21
SELECT FIELD('fo', 'Hej', 'ej', 'Heja', 'hej', 'foo');
28
Return the index position of the first argument within the second argument
33
Return the index of the first occurrence of substring
38
Return the leftmost number of characters as specified
43
Insert a substring at the specified position up to the specified number of characters
48
Return the position of the first occurrence of substring
53
A synonym for LOCATE()