学术问题,大大的不懂
declare @num int,@i int
set @i=1
set @num=0
while @i<=100
begin
if @i%2=0
set @num+=@i
set @i=@i+1
end
select @num
declare @num int,@i int
set @i=1
set @num=0
while @i<=100
begin
if @i%2=0
set @num+=@i
set @i=@i+1
end
select @num