Create Or Replace Procedure Inserthello(userid)Is
Begin
       Insert Into ee(userid)Values(userid);
       
End Inserthello;编译通过,但是在pl/sql developer中测试存储过程时,提示“Inserthello”无效。我在直接在sql中调用Inserthello(1);,提示“无效sql语句”。
怎么回事呢?

解决方案 »

  1.   

    Create Or Replace Procedure Inserthello(userid VARCHAR2) Is  --定义下类型
    Begin
      Insert Into ee (userid) Values (userid);
      commit;
    End Inserthello;
      

  2.   


    Create Or Replace Procedure Inserthello(userid)Is 
    Begin 
    userid 带数据类型
    Create Or Replace Procedure Inserthello(userid varchar2)Is 
    Begin
      

  3.   


    Create Or Replace Procedure Inserthello(user_id in number)Is 
    Begin 
          Insert Into ee(userid)Values(user_id); 
          commit;
          
    End Inserthello;