How LOCATE() Works in MariaDB

In MariaDB, LOCATE() is a built-in string function that returns the position of the first occurrence of a substring within another string.

LOCATE() is similar to the INSTR() function, except that LOCATE() provides the option of specifying a starting position for the search. Also, the argument order is reversed between these two functions.

Read more

How INSTR() Works in MariaDB

In MariaDB, INSTR() is a built-in string function that returns the position of the first occurrence of a substring within another string.

INSTR() is similar to the LOCATE() function, except that LOCATE() provides the option of specifying a starting position for the search. Also, the argument order is reversed between these two functions.

Read more