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
相關文章
相關標籤/搜索