我是靠谱客的博主 贪玩皮皮虾,这篇文章主要介绍sql 游标使用笔记,现在分享给大家,希望可以做个参考。

复制代码 代码如下:

declare @pdtid nvarchar(50)
declare @ptype nvarchar(50)
declare my_cursor CURSOR for
select pdtid,ptype from dbo.Product
open my_cursor
fetch next from my_cursor
into @pdtid,@ptype
while @@fetch_status=0
begin
fetch next from my_cursor
end
close my_cursor

最后

以上就是贪玩皮皮虾最近收集整理的关于sql 游标使用笔记的全部内容,更多相关sql内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(125)

评论列表共有 0 条评论

立即
投稿
返回
顶部