ROLLUP字面意思大概就是向上卷,用在GROUP BY 里面可起到累积求和的作用:
没有ROLLUP的情况下,以下查询按department_id和job_id进行分组求和:
Oracle PL/SQL之GROUP BY ROLLUP
本文导语: ROLLUP字面意思大概就是向上卷,用在GROUP BY 里面可起到累积求和的作用: 没有ROLLUP的情况下,以下查询按department_id和job_id进行分组求和: SELECT department_id, job_id, SUM(salary) FROM employees WHERE department_id ...
ROLLUP字面意思大概就是向上卷,用在GROUP BY 里面可起到累积求和的作用:
没有ROLLUP的情况下,以下查询按department_id和job_id进行分组求和: