.net中游标相关问题急求
fetch next from LiveInfo_BaseInfoId into @money ----移动游标指向第一条记录
while @@fetch_status=0
begin
print @money
fetch last from LiveInfo_BaseInfoId into @money
end
close LiveInfo_BaseInfoId --关闭游标
deallocate LiveInfo_BaseInfoId --释放游标
为什么 @money的值总是0呢 急求
------解决方案--------------------是不是实际值也是这样子呢,调试下吧
------解决方案--------------------begin
print @money
fetch last from LiveInfo_BaseInfoId into @money------------------>(fetch next from LiveInfo_BaseInfoId into @money)
end