Files
doris/docs/en/sql-reference/sql-functions/string-functions/instr.md
ZhangYu0123 1d9b3aeee7 [Doc] Repair document format (#4336)
The error format '##keyword' in a lot of docs. This pr is to repair document format. #4335
2020-08-13 23:39:41 +08:00

1.3 KiB

title, language
title language
instr en

instr

Description

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.

example

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

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

keyword

INSTR