MySQL 中 substring_index(str, delim, count) 函数 字符串截取:左截取、右截取、按关键字截取

按关键字进行读取# 用法:substring_index(str, delim, count),即:substring_index(被截取字符串,关键字,关键字出现的次数) SELECT SUBSTRING_INDEX(str,delim,count) # 截取第二个“-”之前所有的字符 S...