SQL Server中的compute不能用了

3.38, 统计存放于供电局2#仓库的所有物资的总价值

select mat_name, speci, amount, unit, total
from Stock
where warehouse = '供电局2#仓库'
compute sum(total)

sql server express 2019, 报错, 查询不出来

通过网上查询, 了解到 compute, 好像在 sql server 2012中, 就被废弃了

以后有时间, 整理一下

posted on 2021-06-12 08:29  beyondx  阅读(322)  评论(0编辑  收藏  举报

导航