需求描述:
需要对ef_order表中car_model_info(json类型)字段中的seriesCode进行group by并计数
未生效的写法:
select json_extract(car_model_info,'$.series_code') AS series_code,count(*) from ef_order where pay_method=1 and status=100 and dealer_id=14 group by series_code
运行结果:未进行分组
解决方法: