一个入门sp错误,请指教.

michaelgy 2008-06-26 09:40:41
第一次做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

...全文
130 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
michaelgy 2008-06-26
  • 打赏
  • 举报
回复
补充下, 错误时compiler时候,不是执行的时候
bobfang 2008-06-26
  • 打赏
  • 举报
回复
没问题的,pl/sql developer需要在command window下执行execute sp_name
michaelgy 2008-06-26
  • 打赏
  • 举报
回复
我用的是 sql developer.
存储过程有问题么 ?
bobfang 2008-06-26
  • 打赏
  • 举报
回复
你是在什么环境下执行的execute sp_name ?execute sp_name这种写法适用于sqlplus下,这里的execute是sqlplus的命令,看你的错误,你好像是在存储过程或pl/sql块中执行的execute sp_name。
bobfang 2008-06-26
  • 打赏
  • 举报
回复
你是在什么环境下执行的execute sp_name ?execute sp_name这种写法适用于sqlplus下,这里的execute是sqlplus的命令,看你的错误,你好像是在存储过程或pl/sql块中执行的execute sp_name。
bobfang 2008-06-26
  • 打赏
  • 举报
回复
你是在什么环境下执行的execute sp_name ?execute sp_name这种写法适用于sqlplus下,这里的execute是sqlplus的命令,看你的错误,你好像是在存储过程或pl/sql块中执行的execute sp_name。

17,377

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 基础和管理
社区管理员
  • 基础和管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧