时间:2021-07-01 10:21:17 帮助过:9人阅读
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函数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)