Home » MySQL String LOCATE() Function

MySQL String LOCATE() Function

by Online Tutorials Library

MySQL LOCATE() Function

LOCATE(substr,str) is a Sring function of MySQL. This method returns the first occurrence of given substr in the given string,

Syntax

Example 1

Output:

MySQL String LOCATE() Function

Example 2

Output:

MySQL String LOCATE() Function

Next TopicMySQL String

You may also like