SQL> create function sp_fun2(sname varchar2)
2 return number is yearsal number(7,2);
3 begin
4 select sal*12+nvl(comm,0)*12 into yearsal
5 from emp where ename=sname;
6 return yealsal;
7 end;
8 /
9
10
按回车键没用,/没结束。有时候会执行,有时候,会像上面一样oracle存储functionsqlselect
2 return number is yearsal number(7,2);
3 begin
4 select sal*12+nvl(comm,0)*12 into yearsal
5 from emp where ename=sname;
6 return yealsal;
7 end;
8 /
9
10
按回车键没用,/没结束。有时候会执行,有时候,会像上面一样oracle存储functionsqlselect
解决方案 »
- 数据库之间的导入和导出
- 小弟求帮助~oracle初学者刚进公司就给项目,实在不会做。求帮忙!
- 哪个Oracle版本支持Win8x64呀?
- 我编译occi程序老是出错,提示我一些类函数没有定义
- 救急:oracle11g导入报下面错误
- ★★★★★向各位大虾求救:如何查询得到哪些表有哪些相同字段.!!!!!!!!★★★★
- oracle8.1.7+Red Hat Linux安装
- 急等:long型数据如何实现排序?
- 大家好!帮我解决一个数据库连接问题,高分相送(在线等待)
- 在oracle中能否得一个表所有这段,及字段的中文名称
- 求一条sql语句
- 将表数据旋转90度,不需要聚合,原表列数大于行数。指定9i
2 return number is yearsal number(7,2);
3 begin
4 select sal*12+nvl(comm,0)*12 into yearsal
5 from emp where ename=sname;
6 return yealsal;
7 end;
8 /
create function sp_fun2(sname varchar2)
return number is yearsal number(7,2);
begin
select sal*12+nvl(comm,0)*12 into yearsal
from emp where ename=sname;
return yealsal;
end;
ORA-00955: 名称已由现有对象使用
我函数名明明定义的是sp3.怎么提示错误sp2.奇了怪。难道有缓存