728x90

※ ORACLE 사용방법

  • SELECT A, B, sum(C) FROM TABLE GROUP BY ROLLUP(A, B);

 

※ MySQL 사용방법

  • SELECT A, B, sum(C) FROM TABLE GROUP BY A, B WITH ROLLUP;

 

 

 

728x90
TOP