首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > SQL Server >

MSSQL 游标应用

2012-09-29 
MSSQL 游标使用declare nn cursor staticfor select id from user open nnfetch next from nn into @idwhi

MSSQL 游标使用

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
?

?

静态游标,定义办法

热点排行