各位大虾请帮忙,在线等待。oracle8.0函数中用动态sql总出错,提示:ORA-06571: 函数MYIF不能保证不更新数据库

BingShanpds 2003-10-29 04:58:52
oracle函数中用动态sql总出错,提示:ORA-06571: 函数MYIF不能保证不更新数据库
...全文
64 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
beckhambobo 2003-10-29
  • 打赏
  • 举报
回复
ORA-06571 Function string does not guarantee not to update database

Cause: One of the following:

A SQL statement references a packaged, PL/SQL function that does not contain a pragma that prevents the database from being updated.
A SQL statement references a standalone, PL/SQL function that contains an instruction to update the database.
Action: If the referenced function is a packaged, PL/SQL function, re-create the PL/SQL function with the required pragma; be certain to include the 'Write No Database State' (WNDS) argument in the argument list of the pragma. If the referenced function is standalone, PL/SQL function, do not use the function.

把代码贴出来
bzszp 2003-10-29
  • 打赏
  • 举报
回复
你是不是用execute immediate str来做的?

你的动态sql只能调用dbms_sql来处理,8.0.5不支持
不能用execute immediate str来做

3,499

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 高级技术相关讨论专区
社区管理员
  • 高级技术社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧