oracle 不存在函数,Oracle – 此范围内不存在名称为X的函数
該函數(shù)顯然存在,因?yàn)槲铱梢允褂肧QL Developer導(dǎo)航到它并且它編譯得很好,但是當(dāng)我嘗試使用帶或不帶“call”的函數(shù)時(shí),它拋出:
Error(36,24): PLS-00222: no function with name ‘x’ exists in this
scope
這是函數(shù)的樣子:
create or replace function testfunction
(
somevalue in varchar2
)
return varchar2
AS
cursor testcursor IS
select column1, column2 from table1 t
where t.column1 = somevalue;
testcursorrec testcursor %rowtype;
messaget VARCHAR2(500);
begin
open testcursor ;
fetch testcursor into testcursorrec ;
close testcursor ;
messaget := testcursor.column1;
return messaget ;
end;
這就是我所說的:
messaget := testfunction(somevalue);
其中messageT和somevalue都聲明為varchar2類型.
游標(biāo)內(nèi)部不允許使用游標(biāo)嗎?
總結(jié)
以上是生活随笔為你收集整理的oracle 不存在函数,Oracle – 此范围内不存在名称为X的函数的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: oracle虚读,oracle基础 -
- 下一篇: Redmi Note 12T新机国内拿证