在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;
添加声明后解决。
最后
以上就是娇气朋友最近收集整理的关于Oracle数据库索引管理-基于函数索引ORA-30553的全部内容,更多相关Oracle数据库索引管理-基于函数索引ORA-30553内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复