Files
doris/docs/documentation/en/sql-reference/sql-functions/string-functions/instr_EN.md
xy720 7a0c7f45b2 Add English documents for Doris (#1719)
The english documents is translated by machine. So It may has some mistake.
We will fix them later
2019-08-29 13:47:15 +08:00

542 B

~35instr Description '35;'35;' 35; Syntax

'INT INSR (WARCHAR STR, WARCHAR substrate)'

Returns the location where substr first appeared in str (counting from 1). If substr does not appear in str, return 0.

'35;'35; example

mysql> select instr("abc", "b");
+-------------------+
124Insr ('abc','b') 124
+-------------------+
|                 2 |
+-------------------+

mysql> select instr("abc", "d");
+-------------------+
124Insr ('abc','d') 124
+-------------------+
|                 0 |
+-------------------+

##keyword INSTR