MySQL has a number of string functions that return the position of a substring within a string. More specifically, they return the position of the first occurrence within the string (or the first occurrence after a given starting point).
The functions I’m referring to are as follows:
INSTR()
LOCATE()
POSITION()
Below is an overview of each one.