select  type,sum(value) as valueSum from t group by type

相关文章: