22,210
社区成员
发帖
与我相关
我的任务
分享
declare @Cursor cursor
set @Cursor=cursor for
SELECT a1,b1 FROM a
open @Cursor
fetch next from @Cursor into @a1,@b1
WHILE @@FETCH_STATUS=0
begin
if @a1=1
goto label
fetch next from @Cursor into @a1,@b1
end
DEALLOCATE @gardenCursor
label:
............
return