mysql---根据=指定符号拆分字符串

今天琢磨了一会,但是好像是只能处理俩个字符,可能是不会用

SELECT 字段名,substring_index(字段名,',',1) as one FROM orders WHERE delivery LIKE '%2018-09%'

原文地址:https://www.cnblogs.com/Bhi9712/p/9742327.html