sql 不用游标的循环
select @min=min(xh) from gzxm
while @min is not null
begin
。。。。。
select @min=min(xh) from gzxm where xh>@min
end
select @min=min(xh) from gzxm
while @min is not null
begin
。。。。。
select @min=min(xh) from gzxm where xh>@min
end