Mysql 字符串函数
field(str,str1,str2,str3,....)是MySQL的一个字符串函数。此方法返回字符串的索引。
复制代码复制代码select field(str,str1,str2,str3,...)
select field(str,str1,str2,str3,...)
复制代码复制代码Selct field('a','b','c','d','a');
Selct field('a','b','c','d','a');
输出:
复制代码复制代码Selct field(4,1,2,3,5,4,6);
Selct field(4,1,2,3,5,4,6);
复制代码复制代码Selct field(12,1,2,3,4,6);
Selct field(12,1,2,3,4,6);
目录