利用游标遍历数据表或者数据集
declare cur cursor for select AccountID,EmployeeName from #Temp open cur fetch next from cur into @tmpID, @tmpName fetch next from cur into @tmpID, @tmpName end close cur deallocate cur
下载地址
用户评论
很全,什么都有了,感谢.