赋值错了:add_one := select substr(max(apply_no),1,2)||lpad(to_char(max(to_number(substr(apply_no,2,length(apply_no))))+1),3,'0') from COREMOUNT.FJ_LEAVE_APPLIES;
改为
select substr(max(apply_no),1,2)||lpad(to_char(max(to_number(substr(apply_no,2,length(apply_no))))+1),3,'0') into add_one from COREMOUNT.FJ_LEAVE_APPLIES;
改为
select substr(max(apply_no),1,2)||lpad(to_char(max(to_number(substr(apply_no,2,length(apply_no))))+1),3,'0') into add_one from COREMOUNT.FJ_LEAVE_APPLIES;
解决方案 »
- 查询时 =与like 的区别
- select T.a,T.b,S.c from T,s where T.b==S.b;这条语句和自然连接执行效率一样吗
- 用sysdba角色创建一个emp表,在删除该表时提示“删掉sys.emp错误
- 请教oarcle高手!!!!!
- pl/sql执行存储过程
- Oracle 10.0.2导出xml文档问题
- agent启动不了?
- 如何取分组后各分组的前2名?急!!!!
- 购买Oracel要注意那些?
- 请问在Win2000 pro的操作系统上可以安装Oracle9i么?
- 怎么存入数据库中DATE型字段的数据是:23-三月 -0005 12:00:00 AM,我想想变成“yyyy-mm-dd”格式的日期
- util_file.fopen()报错,没有操作目录的权限,关于解决的办法。
1/24 PLS-00103: 出现符号 ")"在需要下列之一时:
<an identifier>
<a double-quoted delimited-identifier> current
这是什么意思。只剩下这一个错误了
-->
create or replace function max_apply_no
去掉括号试试