欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

function

程序员文章站 2022-05-13 17:42:39
...

create or replace function fun_check_ftmobile
(
      pTMobile    varchar2
)
/* ===========================================
      Users: Qiang.cai
      Timer: 2009-12-14 23:03:00
      Functio: 验证子卡是否存在 Y已存在 N不存在
=========================================== */
return varchar2 is
      pCount  int         := 0;
      pResult varchar2(2) := '';
begin
      select count(*) into pCount from x_terminal where ftmobile = pTMobile;
      if pCount > 0 then
         pResult := 'Y';
      else
         pResult := 'N';
      end if;
      return(pResult);
exception
      when others then
      raise_application_error(sqlcode,'fun_check_ftmobile;info:'||sqlerrm||';pTMobile='||pTMobile);
end fun_check_ftmobile;

上一篇: common

下一篇: MySql_connection