首页 > 其他 > 详细

Error: PLS-00201: 必须声明标识符 'EVEN'

时间:2015-12-15 01:04:11      阅读:290      评论:0      收藏:0      [点我收藏+]

1、错误描述

Compilation errors for FUNCTION SCOTT.ODD

Error: PLS-00201: 必须声明标识符 ‘EVEN‘
Line: 4
Text: Result := not Even(Value);

Error: PL/SQL: Statement ignored
Line: 4
Text: Result := not Even(Value);

2、错误原因

create or replace function Odd(Value in integer) return boolean is 
    Result boolean;
   begin 
    Result := not Even(Value);
    return (Result);
   end Odd; 
    由于这个函数中需要调用Even函数,但是这个函数没有定义,所以会报错


3、解决办法

create or replace function Even(Value in integer) return boolean is
    Result boolean;
   begin
     Result := (Value mod 2 = 0);
     return (Result);
   end Even;
    新建Even函数


Error: PLS-00201: 必须声明标识符 'EVEN'

原文:http://blog.csdn.net/you23hai45/article/details/50302215

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!