我在oracle pl sql中有一段代码,想真正了解一下有多少上下文切换
If x=0 then
curserx= select a from mytable1;
Else
curserx=select a from mytable1 where id=:x;
End;
Loop
Fetch on cursorx
Select c from mytable2 where a=curserx.a;
End loop;
Run Code Online (Sandbox Code Playgroud)
这只是一个示例代码,所以请原谅任何文本大小写和逻辑错误。