本篇文章主要介绍了"Error: PLS-00201: 必须声明标识符 EVEN",主要涉及到PL/SQL方面的内容,对于其他数据库感兴趣的同学可以参考一下:
1、错误描述Compilation errors for FUNCTION SCOTT.ODDError: PLS-00201: 必须声明标识符 'EVEN'
...
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,包括了PL/SQL方面的内容,希望对其他数据库有兴趣的朋友有所帮助。
本文网址链接:http://www.codes51.com/article/detail_249074.html