Python语言基础
Python语言进阶
Python数据结构

MySQL FIND_IN_SET()函数

MySQL FIND_IN_SET()函数

Find_in_set(str,strlist)是MySQL的Sring函数。此方法返回在参数的第一个位置给出的字符串值。

语法

select find_in_set(str, 'str1, str2,...');

示例1

Select find_in_set('a','b,c,d,a');
输出:

MySQL字符串FIND_IN_SET()函数

示例2

Select find_in_set(4,'1,2,3,5,4,6');
输出:

MySQL字符串FIND_IN_SET()函数

示例3

Select find_in_set(12,'1,2,3,4,6');
输出:

MySQL字符串FIND_IN_SET()函数
昵称: 邮箱:
Copyright © 2022 立地货 All Rights Reserved.
备案号:京ICP备14037608号-4