show err[ors]查看错误原因new_sal = current_sal - in_sal;
=>
new_sal := current_sal - in_sal;
=>
new_sal := current_sal - in_sal;
解决方案 »
- 表无法创建到自已的用户空间下,请教
- 帮我看看这个oracle存储过程哪里写错了(PL/SQL里)?
- 求救: 今天误操作,把一个数据库删除了。
- 统计报表的时间和数据锁定时间
- 请教关于CDC问题
- 急!!!row_number()over(partition by 用在存储过程中无效,恳请高手相助!!
- 咨询:关于Oracle9i的问题!
- Oracle 中如何更好地使用help?怎幺找不到类似windows 和borland 的help的索引?比如我想查 show 的用法,我该怎幺查?
- 十分着急,游标出错怎么办?
- 我这样用JAVA在ORACLE里建表为什么出错?
- EXP时出现问题,请大家帮忙!
- 怎么用sql语句查看视图的创建语句?
create procedure sam_first_pro (in_playerid string, in_sal real) is
current_sal real;
new_sal real;
salary_missing EXCEPTION;
begin
end sam_first_pro;
它照样给出“警告: 创建的过程带有编译错误。”信息。请高手诊断。
看错误在哪行
create procedure sam_first_pro (in_playerid string, in_sal real) is
begin
end sam_first_pro;
create procedure sam_first_pro (in_playerid string, in_sal real) is
begin
null;
end sam_first_pro;
begin
null;
end sam_first_pro;
仍然是:警告: 创建的过程带有编译错误。
2 begin
3 null;
4 end sam_first_pro;
5
6 /过程已创建。我怎么没有啊??我是粘贴你的代码啊~
看看
create procedure sam_first_pro () is
begin
null;
end sam_first_pro;
但存储过程究竟建没建起呢?因为我每次重新create前必须得用:drop procedure sam_first_pro;把它先删掉才能又建。疑问重重啊!
建没建起来,desc 过程名,看看就知道了
begin
null;
end sam_first_pro;show err
即可查看错误信息每次重新create前必须得用:drop procedure 改成create or replace procedure ...
create or replace procedure sam_first_pro is
begin
null;
end sam_first_pro;
没有括号的
或
begin
过程名;
end;
/