日期:2014-05-17 浏览次数:21080 次
select decode(grouping_id(c1,c2),1,'小计',3,'合计',c1), c2, sum(c3) from t group by rollup(c1,c2)