t-sqlcompute函数 目前只在2008里用了。。其他的么有试过 无 with tb(id,product,barcode,qty) as(select 1,'AA',240,3union all select 2,'BB',245,2union all select 3,'AA',255,2union all select 4,'BB',240,1)select * from tb compute sum(qty),sum(bar
t-sql compute函数目前只在2008里用了。。其他的么有试过 <无>
with tb(id,product,barcode,qty) as ( select 1,'AA',240,3 union all select 2,'BB',245,2 union all select 3,'AA',255,2 union all select 4,'BB',240,1 ) select * from tb compute sum(qty),sum(barcode)
php入门到就业线上直播课:查看学习
千万级数据并发解决方案(理论+实战):点击学习
![](http://m.sbmmt.com/img/upload/article/000/000/020/633501a29d313483.png)