Syntax
POSITION(substr IN str)
Purpose
You can call this function to return 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 (0.01 sec)