剑轩

Oracle存储过程

电脑版发表于:2018/12/28 15:17


一个简单的带输入输出参数的存储过程(求两数之和)

create or replace procedure proc_sum(p1 int,p2 int,presult out int)
as
begin
     presult:=p1+p2;
end;

执行该存储过程:

declare pr int;
begin
  proc_sum(6,7,pr);
  dbms_output.put_line(pr);
end;


关于TNBLOG
TNBLOG,技术分享。技术交流:群号677373950
ICP备案 :渝ICP备18016597号-1
App store Android
精彩评论
{{item.replyName}}
{{item.content}}
{{item.time}}
{{subpj.replyName}}
@{{subpj.beReplyName}}{{subpj.content}}
{{subpj.time}}
猜你喜欢