如下所示
SELECT COALESCE(ename,‘总计‘) ,SUM(sal) FROM emp GROUP BY ename WITH ROLLUP
原文地址:https://www.cnblogs.com/renguanyu/p/12230217.html
时间: 2024-11-08 20:33:10
如下所示
SELECT COALESCE(ename,‘总计‘) ,SUM(sal) FROM emp GROUP BY ename WITH ROLLUP
原文地址:https://www.cnblogs.com/renguanyu/p/12230217.html