• 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;
     
    

      

  • 相关阅读:
    CFgym102394I
    Infinite Fraction Path (后缀数组)
    2016ACM/ICPC亚洲区沈阳站-重现赛
    2sat学习笔记
    bzoj4176
    bzoj3309
    6C
    3U
    3T
    3R
  • 原文地址:https://www.cnblogs.com/jycjy/p/9467809.html
Copyright © 2020-2023  润新知