日期:2014-05-17  浏览次数:20866 次

PLSQL Developer问题
为何我在PLSQL   Developer中新建了一个子test   windows编辑以下代码:
declare
v_aa   varchar2(1000);
v_temp   CCC.aa%type;
cursor   c1   is
    select   bb   from   CCC   where   aa=222;
begin
open   c1;
loop   fetch   c1   into   v_temp;
exit   when   c1%notfound;
v_aa:=v_aa||v_temp;
dbms_output.put_line(v_aa);  

end   loop;
end;

反复执行几次start   debuggerg再运行,会出现死机情况,发现PLSQL   Developer进程占用99%,为什么


------解决方案--------------------
没有关闭cursor

加上:
close c1;

cursor极占资源