declare nn cursor staticfor select id from user open nnfetch next from nn into @idwhile @@fetch_status = 0 begin --处理语句 fetch next from nn into @idendclose nndeallocate nn?
?
静态游标,定义办法
declare nn cursor staticfor select id from user open nnfetch next from nn into @idwhile @@fetch_status = 0 begin --处理语句 fetch next from nn into @idendclose nndeallocate nn?
?
静态游标,定义办法