oracle中group by rollup函數的的用法

1、採用union all的方式拼接數組 採用union all 方式,union all 左側查詢相關明細記錄 ,右側拼接聚合函數組成的彙總行 簡單例子: select column1,column2,column3,column4 from tableA union all select '合計',sum(column2),sum(column3),sum(column4) from tabl
相關文章
相關標籤/搜索