如果需要取到每一行的数据需要通过如下的方式:
declare @d int
declare cursor_tst cursor scroll for
select _id from users
open cursor_tstfetch next from cursor_tst into @dwhile(@@fetch_status=0)
begin
print @dfetch next from cursor_tst into @d
end
deallocate cursor_tst