MySQL JSON數據類型的計數和分組(對json類型中的某個字段group by )

需求描述: 需要對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
相關文章
相關標籤/搜索