34,590
社区成员
发帖
与我相关
我的任务
分享
declare @A int,@B int
declare t_cursor cursor for
select A,B from T
open t_cursor
fetch next from t_cursor into @A,@B
while @@fetch_status=0
begin
fetch next from t_cursor into @A,@B
exec fx @A,@B
end
close t_cursor
deallocate t_cursor