程序,人生,思想,灵魂。

欢迎大家访问我的个人网站 萌萌的IT人

导航

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;

添加声明后解决。

posted on 2010-06-23 16:16  乔帮主  阅读(299)  评论(0)    收藏  举报