create or replace procedure stuprocess
as
begin
dbms_output.put_line('can not open the table');
end;

解决方案 »

  1.   

    create or replace procedure stuprocess
    as
    begin
      dbms_output.put_line('can not open the table');
    end stuprocess;
      

  2.   

    谢谢jiezhi(西域浪子) halu(忍着神龟) 
    帮忙在看看以下的create or replace procedure stuprocess(
    tempp in stu.p%type,
    tempe in stu.e%type,
    tempm1 in stu.m1%type,
    tempm2 in stu.m2%type,
    tempm3 in stu.m3%type,
    tempsum in result.resultsum%type)  assturecord stu%rowtype;
    stusum    result.resultsum%type;
    stuflag    varchar2(4);
    cursor stucursor is select * from stu;errmessage  exception;begin 
    open stucursor;
     if stucursor%notfound then 
        raise errmessage;
     end if;loop
      fetch stucursor into sturecord;
      stusum:=sturecord.e+sturecord.p+sturecord.m1+sturecord.m2+sturecord.m3;
      if ((sturecord.e>=tempe)    and
         (sturecord.p>=tempp)    and
         (sturecord.m1>=tempm1)  and
         (sturecord.m2>=tempm2)  and
         (sturecord.m3>=tempm3)  and
         (stusum>=tempsum))      then
        stuflag:='录取';
        else
        stuflag:='落选';
      end if;
    exit when stucursor%notfound;
    insert into result values(sturecord.bh,sturecord.xm,sturecord.lb,sturecord.e,sturecord.p,sturecord.m1,sturecord.m2,sturecord.m3,stusum,stuflag);
      end loop;
    close stucursor;
    commit;
    exception  
    when errmessage then 
         dbms_output.put_line('can not open the table');
    end;   也说"编译错误"
    stu和result是两个表万分感谢!!!
      

  3.   

    在SQLPLUS下面执行show error,把结果贴出来
      

  4.   

    少is
    create or replace procedure stuprocess
    is
    ...