sql求和有一张表type字段记录着类型,amount记录着数量,如何用一句sql查询出type类型为a,b,c三者的amount记录数总和 [解决办法]select sum(amount) amount from table1 where [type] in('a','b','c')[解决办法]不知道你要的是不是上图的结果