文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>游标 cursor 使用方法

游标 cursor 使用方法

时间:2011-05-17  来源:Ping Lee


declare mc cursor for SELECT [id],[name] ,[age] FROM [tb]
DECLARE @id nvarchar(50)
DECLARE @name nvarchar(50)
DECLARE @age int
open mc
fetch next from mc INTO @id,@name,@age 
while @@fetch_status = 0
Begin
select @id,@name,@age
fetch next from mc INTO @id,@name,@age 

end
 
close mc
deallocate mc

相关阅读 更多 +
排行榜 更多 +
谷歌卫星地图免费版下载

谷歌卫星地图免费版下载

生活实用 下载
谷歌卫星地图免费版下载

谷歌卫星地图免费版下载

生活实用 下载
kingsofpool官方正版下载

kingsofpool官方正版下载

赛车竞速 下载