日期:2014-05-18 浏览次数:20439 次
declare @year int=0,@money numeric(18,2)=1000 while @money<1000000 begin set @money=@money+@money*0.05+1000 set @year=@year+1 end print @year