select city from t where sex = '男&(1145)#39; GROUP BY city ORDER BY avg(age) desc limit 3 select avg(age) from t where city in (select city from t where sex = '男&(1145)#39; GROUP BY city ORDER BY avg(age) desc limit 3 ) group by city 两个 SQL 语句,不知道对不对,请大家指正