为何我在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%,为什么

解决方案 »

  1.   

    怎么没人回呀?是不是我没说清楚?
    反复执行start debuggerg和运行几次,会出现死机情况,发现PLSQL Developer进程占用99%,为什么
      

  2.   

    不会呀,
    exit when c1%notfound;
      

  3.   

    反复执行start debuggerg和run几次,再点start debuggerg就死了为什么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;
    close c1;
    end;
      

  4.   

    没有关闭cursor加上:
    close c1;cursor极占资源
      

  5.   

    sorry,看错了你点开DBMS Output tag看看输出的是什么信息?