Syntax
POSITION(substr IN str)
Purpose
POSITION() returns the position of the first occurrence of the substring substr in the string str.
Examples
obclient> SELECT POSITION('bar' IN 'foobarbar');
+--------------------------------+
| POSITION('bar' IN 'foobarbar') |
+--------------------------------+
| 4 |
+--------------------------------+
1 row in set