// 创建计算螺栓载荷的函数
create or replace function f_luoshuan_zaihe(d in number,b in number,m in number,p in number,q in number)
return number
is
Result1 number;
PI number :=3.14;
begin
Result1 := 0.785*(d-2*b)*(d-2*b)*p+2*PI*b*(d-2*b)*m*p+q;
return Result1;
exception
when no_data_found then
return 'error';
end f_luoshuan_zaihe;
//创建存储过程,调用计算螺栓载荷的函数
create or replace procedure p_luoshuan_zaihe(d in number,b in number,m in number, p in number,q in number) is
res number;
begin
select f_luoshuan_zaihe(d,b,m,p,q) into res from dual;
dbms_output.put_line(sqlerrm);
end p_luoshuan_zaihe;
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论


















收起资源包目录


共 1 条
- 1
资源评论

- 第46个站台2013-11-07跟我想要的有出入,不过针对有特定的表,这个是很好用的。
- huoshouyu2013-10-27还行,有启示作用
- Bullatus2013-04-22还算有点用……

tjx2006
- 粉丝: 1
- 资源: 6
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


安全验证
文档复制为VIP权益,开通VIP直接复制
