1.group by语句增强
语法;group by rollup(a,b)
等价于group by a,b + group by a + group by null
主要常用在报表中
列子:select deptno ,job,sun(sal) from enm group by deptno ,job+
select deptno,sum(sal) from emp group by deptno+
select sum(sal)from emp
==========等价于
select deptno ,job,sun(sal) from enm group by rollup(deptno ,job);
2.sql*plus报表功能
1,title col 15 '我的报表' col 35 sql.pno
其中col表示列,15表示空15行 sql.pno 表示页数
2.col deptno heading 部门号 设置部门号