MySQL LOCATE Function vs 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: 2019-07-30T22:30:21+05:30

463 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements