select sum(u.age) from user u where u.userId>5 group by u.other 执行顺序:先根据where过滤出部分记录; 对过滤出的记录根据other分组; 对没一组,算出age的总和