当前位置: 代码迷 >> Oracle开发 >> 在oracle建了个函数,但在plsql中显示有个红叉是咋回事
  详细解决方案

在oracle建了个函数,但在plsql中显示有个红叉是咋回事

热度:120   发布时间:2016-04-24 07:49:04.0
在oracle建了个函数,但在plsql中显示有个红叉是怎么回事?
函数:
CREATE   OR   REPLACE   FUNCTION   QEBHIS. "GetNl "   (csrq   in   datatime)   return   int   is   nl;
begin
nl:=   trunc(MONTHS_BETWEEN(sysdate,to_date(csrq, 'yyyy/mm/dd '))/12)
return   nl;
end;

调用时说无效的标识符..

还有怎么重命名?

------解决方案--------------------
CREATE OR REPLACE FUNCTION GetNl (csrq in date) return int
is
nl int;
begin
nl:= trunc(MONTHS_BETWEEN(sysdate,to_date(csrq, 'yyyy/mm/dd '))/12);
return nl;
end;
  相关解决方案