1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
Set @currentsphere = @spheremin
set @currentcylinder = @cylindermin
set @currentaddition = @additionmin
set @scale = 0.25
BEGIN
while(@currentsphere <= @spheremax)
BEGIN
SET @currentcylinder = @cylindermin
while(@currentcylinder <= @cylindermax)
BEGIN
SET @currentaddition = @additionmin
while(@currentaddition <= @additionmax)
BEGIN
insert into #TableUWS (sphere,cylinder,addition,weighted_sales,weight_per_sphere,user_weight_per_sphere,weight_per_cylinder,weight_per_addition,user_weighted_sales)
values(@currentsphere,@currentcylinder,@currentaddition,0,0,0,0,0,0)
Set @currentaddition = @currentaddition + @scale
END
Set @currentcylinder = @currentcylinder + @scale
END
Set @currentsphere = @currentsphere + @scale
END
END |