select routes.*,sum(Surplus) as Surplus,positions.RID from positions,routes where routes.flightnumber='a123' and routes.RID=positions.RID
所有查询字段“在选择列表中无效,因为该列未包含在聚合函数中,并且没有 GROUP BY 子句。”  group by必须要有吗?