oracle建包,函数demo

create table BOOK
(
BOOK_ID NUMBER(10),
BOOK_NAME VARCHAR2(10)
); create or replace package chen_pack
is
function f__getBOOK_NAME_number(in_status in varchar2) return number;
end; create or replace package body chen_pack
as function f__getBOOK_NAME_number(in_status in varchar2)
return number
as
outnum number;
begin
select count(1) into outnum from test1.BOOK g where g.BOOK_NAME = in_status;
return outnum;
end f__getBOOK_NAME_number; end;

  

上一篇:利用净现值(NPV)分析对比方案的可行性


下一篇:网课应该这么刷(油猴Tampermonkey脚本自动刷课)