C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
MySQL INSTR() FunctionINSTR(str,substr) is a Sring function of MySQL. This method return 1st occurrence of substring substr in string str. Syntax
select instr(str,substr); Example 1
Select instr('Javanpoint',5,1,'t');
Output:
Example 2
Select instr('MySql-Function',6,1,'String');
Output:
Next TopicMySQL String
|