请问存储过程中对于两层循环的游标, 条件while @@fetch_status = 0 在内、外层一样的用有没有冲突?
declare cur1 cursor local fast_forward for select ....
open cur1
fetch next from cur1 into ...
while @@fetch_status = 0
------------开始循环1------------------------
begin
declare cur2 cursor local fast_forward for select ....
open cur2
fetch next from cur2 into ...
while @@fetch_status = 0
------------开始循环2------------------------
begin
end
end