SELECT CONCAT('{"name":[',group_concat('"', T1.area_name ,'"' ORDER BY T1.count DESC),'],"value":[',group_concat('"',T1.count, '"' ORDER BY T1.count DESC),']}') AS json FROM T1
做个笔记怕以后忘记
SELECT CONCAT('{"name":[',group_concat('"', T1.area_name ,'"' ORDER BY T1.count DESC),'],"value":[',group_concat('"',T1.count, '"' ORDER BY T1.count DESC),']}') AS json FROM T1
做个笔记怕以后忘记