In MariaDB, FIELD()
is a built-in string function that returns the index position of the string or number matching the specified pattern.
It accepts two or more arguments. The first is the pattern you want to search for. All subsequent arguments are the strings or numbers for which to match the pattern against.
Continue reading