SELECT COUNT(0),PROVINCE_NAME FROM (SELECT B.CITY_NAME ,A.PROVINCE_NAME FROM PROVINCE_TABLE A,CITY_TABLE B WHERE A.PID=B.PID) GROUP BY PROVINCE_NAMEselect c1.provinceid,p1.province,count(1) pronums from city c1 inner join province p1 on c1.provinceid=p1.id
group by c1.provinceid,p1.province
评论列表(0条)