【简答题】declare @n1 int,@n2 int,@i int select @n1=1,@i=0 while @n1<=2 begin select @n2=1 while @n2<=2 begin set @i=@i+@n2 set @n2=@n2+1 end set @n1=@n1+1 end select @i
【简答题】declare @n1 int,@n2 int,@i int select @n1=1,@i=0 while @n1<=2 begin select @n2=1 while @n2<=2 begin print @n1+@n2 set @n2=@n2+1 end set @n1=@n1+1 end