How MySQL LOCATE() function is different from its synonym functions i.e. POSITION() and INSTR() functions?


As all of these functions are used to return the position of a substring within a string but LOCATE() function is a bit different from POSITION() and INSTR() function. In both POSITION() AND INSTR() functions, we cannot manage the starting position of search with the help of argument as position argument in LOCATE() function. All of these functions are having a difference in syntax also.

Updated on: 30-Jul-2019

305 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements