日期:2014-05-18 浏览次数:20595 次
declare @num int --总数 set @num= select sum(Fraction) from Student where names='小红'
declare @num int --总数 select @num= sum(Fraction) from Student where names='小红'
------解决方案--------------------
declare @num int --总数 set @num= (select sum(Fraction) from Student where names='小红')