今天琢磨了一会,但是好像是只能处理俩个字符,可能是不会用
SELECT 字段名,substring_index(字段名,',',1) as one FROM orders WHERE delivery LIKE '%2018-09%'
今天琢磨了一会,但是好像是只能处理俩个字符,可能是不会用
SELECT 字段名,substring_index(字段名,',',1) as one FROM orders WHERE delivery LIKE '%2018-09%'
转载于:https://www.cnblogs.com/Bhi9712/p/9742327.html