create or replace procedure loading_place   (p_ornumber ORDER_LINE.order_no%TYPE )    as        loading_count order_line.order_line_no %TYPE ;   begin       select oreder_line_no into loading_count       from order_line       where operation='loading' AND order_no=p_ornumber;   exception            when TOO_MANY_ROWS then            dbms_output.put_line (' Each order has only 1 loading point.' );   end loading_place; 
 -----------------------------------------------------------------------------
ERROR at line 11: PL/SQL: SQL Statement ignored1.   create or replace procedure loading_place
2. 
3.    (p_ornumber ORDER_LINE.order_no%TYPE )  
 
我真的不懂\……

解决方案 »

  1.   

    sql的名字没错,已经查过很多次了
      

  2.   

    create or replace procedure loading_place  (p_ornumber ORDER_LINE.order_no%TYPE )   
    合并成这样试试
    create or replace procedure loading_place(p_ornumber ORDER_LINE.order_no%TYPE )
    感觉你的代码段里有特殊字符....例如空格之类的 
      

  3.   

    select oreder_line_no into loading_count-->
    ... order_line_no ...
      

  4.   

    申明部分的
    loading_count order_line.order_line_no %TYPE ;执行部分
    select oreder_line_no into loading_count多了个e的区别 自己去看看