Files
doris/docs/en/sql-reference/sql-functions/string-functions/find_in_set.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.4 KiB

title, language
title language
find_in_set en

find_in_set

description

Syntax

INT find_in_set(VARCHAR str, VARCHAR strlist)

"NOT found in set (VARCHAR str., VARCHAR strlist)"

Return to the location where the str first appears in strlist (counting from 1). Strlist is a comma-separated string. If not, return 0. Any parameter is NULL, returning NULL.

example

mysql> select find_in_set("b", "a,b,c");
+---------------------------+
| find_in_set('b', 'a,b,c') |
+---------------------------+
|                         2 |
+---------------------------+

keyword

FIND_IN_SET,FIND,IN,SET