Mysql常用函数的汇总,可看下面文章
https://cloud.tencent.com/developer/article/1641021
返回第一次出现子串的位置,和 locate 一样的作用,只是函数内部参数顺序调过来了而已~哈哈哈
INSTR(str,substr)
LOCATE(substr,str)
SELECT INSTR('foobarbar', 'bar'); # 4 SELECT INSTR('xbar', 'foobar'); # 0
本文分享自 作者个人站点/博客 前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文参与 腾讯云自媒体分享计划 ,欢迎热爱写作的你一起参与!