SQL的locate和substr函数

locate函数:函数 locate(substr,str)   substr在字符串str中第一次出现的位置 locate(substr,str,pos)     从位置pos开始,substr在字符串str中第一次出现的位置。若substr不在str中,则返回0。   substr函数:字符串 substr(str,pos,len)     从位置pos开始,截取len个字符 substr(s
相关文章
相关标签/搜索