今天用到了截取字符串在mysql中,特此记录一下:
substring_index(str,delim,count)
str是字段名,delim是特定字符串,count是从第几个开始截取,例如:
select substring_index(d_name,'中亿永兴光伏1期',1) from alarm_hs
标签:index,截取,delim,substring,mysql,字符串 From: https://www.cnblogs.com/ssbxfsrm/p/17381904.html