请问如何在保证我现有数据结构的基础下。查询每个省级城市(例如江西)的综合呢? 这是我的sql语句 select pro_project.name as proName, pro_user.name as userName, pro_project.stage_status as stageStatus, pro_province_city.name as pronivce_name, i.name as city_name, t.name as county_name, FROM_UNIXTIME(pro_project_appraisal.time,"%Y-%m-%d %H:%i") as appraisalDate, pro_project_appraisal.* from pro_project_appraisal join pro_project on pro_project_appraisal.pid=pro_project.id join pro_user on pro_project_appraisal.uid=pro_user.id join pro_province_city on pro_project.province_id=pro_province_city.id join pro_province_city as i on pro_project.city_id=i.id join pro_province_city as t on pro_project.county_id=t.id where pro_project.status=1 and pro_project_appraisal.status!=0 可以在每条数据里面加一个字段来统计就行。麻烦哪位大佬指教指教 |