第一次做oracle sp , compiler失败.
请教各位.代码如下create or replace procedure spname
   as
   
   begin
   insert into test_guye
   values(2);
   end;执行:execute  sp_name错误 :Error(3,3): PLS-00103: Encountered the symbol "" when expecting one of the following:     ( ; is with authid as cluster compress order using compiled    wrapped external deterministic parallel_enable pipelined 

解决方案 »

  1.   

    你是在什么环境下执行的execute  sp_name ?execute sp_name这种写法适用于sqlplus下,这里的execute是sqlplus的命令,看你的错误,你好像是在存储过程或pl/sql块中执行的execute  sp_name。
      

  2.   

    你是在什么环境下执行的execute  sp_name ?execute sp_name这种写法适用于sqlplus下,这里的execute是sqlplus的命令,看你的错误,你好像是在存储过程或pl/sql块中执行的execute  sp_name。
      

  3.   

    你是在什么环境下执行的execute  sp_name ?execute sp_name这种写法适用于sqlplus下,这里的execute是sqlplus的命令,看你的错误,你好像是在存储过程或pl/sql块中执行的execute  sp_name。
      

  4.   

    我用的是 sql developer. 
    存储过程有问题么 ?
      

  5.   

    没问题的,pl/sql developer需要在command window下执行execute sp_name
      

  6.   

    补充下, 错误时compiler时候,不是执行的时候