[求助]帮我看看这个程序.
declare @n1 int <br/>declare @n2 int <br/>declare @n3 int <br/>declare @n4 int <br/>declare @n5 int <br/>declare @n6 int <br/>declare @m int <br/>declare @n int <br/>declare @p int <br/>set @m=1 <br/>set @n=1 <br/>set @p=1 <br/>set @n1=1 <br/>set @n2=5 <br/>set @n3=10 <br/>while (@n1<=4) <br/>begin <br/>while (@n2<=9) <br/>begin <br/>while (@n3<=15) <br/>begin <br/>while (@n4<=16) <br/>begin <br/>set @n4=@n3+@m <br/>while (@n5<=17) <br/>begin <br/>set @n5=@n4+@n <br/>while (@n6<=18) <br/>begin <br/>set @n6=@n5+@p <br/>insert into fx <br/>values( @n1,@n2,@n3,@n4,@n5,@n6,0,0,0) <br/>set @p=@p+1 <br/>end <br/>set @n=@n+1 <br/>end <br/>set @m=@m+1 <br/>end <br/>set @n3=@n3+1 <br/>end <br/>set @n2=@n2+1 <br/>end <br/>set @n1=@n1+1 <br/>end <br/><br/><br/>运行以后显示"命令已成功完成。" <br/>但就是库里没有写进东西去,为什么.怎么才能把这个结果写入进库里啊 ... ...while (@n4<=16)
... ...
n4定义了,但没有赋值吧(没有测试过)
页:
[1]