时间:2021-07-01 10:21:17 帮助过:32人阅读
union
select ‘合计‘,SUM(fee),GETDATE() from (select top 2 fee from Orders) a
2:Union All (重复的数据不会去掉)
工资合计效果:Select name, sal from teacher
union all
select ‘工资合计’, sum(sal) from teacher
sql union 语句
标签:union all item har each convert span style 效果 完全