C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
MySQL LOCATE() FunctionLOCATE(substr,str) is a Sring function of MySQL. This method returns the first occurrence of given substr in the given string, Syntaxselect locate(substr, str); Example 1select locate('point', 'TheDeveloperBlog'); Output: Example 2select locate('sql, 'mysql'); Output:
Next TopicMySQL String
|