LOCATE(string_exp1, string_exp2[, start])

Returns the starting position (one based) of the first occurrence of string_exp2 within string_exp1. The search for the first occurrence of string_exp2 begins with the first character position in string_exp1 starting at the specified position. If the start position is omitted, then the search is performed from the beginning of the string.

 

Example:

SELECT LOCATE('ABCDEFG','DEFG') returns 4