SqlServer游标操作
Posted bwdblogs
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了SqlServer游标操作相关的知识,希望对你有一定的参考价值。
CLOSE orderNum_02_cursor
deallocate orderNum_02_cursor
DECLARE orderNum_02_cursor cursor SCROLL for select vcThemeId from LG_LiveTheme_Order
DECLARE @themeid varchar(10)
OPEN orderNum_02_cursor
fetch first from orderNum_02_cursor INTO @themeid
WHILE @@FETCH_STATUS=0
BEGIN
PRINT @themeid
FETCH NEXT FROM orderNum_02_cursor INTO @themeid
END
CLOSE orderNum_02_cursor
deallocate orderNum_02_cursor
以上是关于SqlServer游标操作的主要内容,如果未能解决你的问题,请参考以下文章