ORA-30553: 函数不确定!

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

posted @ 2012-04-07 12:52  wbzhao  阅读(570)  评论(0编辑  收藏  举报