ORA-30553: 函数不确定!


 

 

在ORACALE数据库中,创建函数索引时,若函数是自定义的函数,须在定义函数时加上deterministic关健字,不然会出现“函数不确定”的错误提示。

 

 

 

创建函数索引 ORA-30553: 函数不确定.

 


原函数如下:
create or replace function test(id in varchar)
  return number is
  res number ;
  begin
    res := pf_ia.test(id);
    return res ;
  end test;

 

修改后如下

 

create or replace function test(id in varchar)
  return number deterministic is
  res number ;
  begin
    res := pf_ia.test(id);
    return res ;
  end test;

添加声明后解决。

http://www.byywee.com/page/M0/S234/234066.html

相关文章:

  • 2022-12-23
  • 2022-01-20
  • 2021-10-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-16
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-05-16
  • 2021-10-29
  • 2022-12-23
  • 2022-01-15
  • 2022-01-15
  • 2021-08-29
相关资源
相似解决方案