控制sqlrpgle中的提交和回滚
嗨,有人可以告诉我如何控制sqlrpgle中的提交和回滚。
Hi can some one tell me how to control the commit and rollback in a SQLRPGLE.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
嗨,有人可以告诉我如何控制sqlrpgle中的提交和回滚。
Hi can some one tell me how to control the commit and rollback in a SQLRPGLE.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
取决于您的控制含义...
有 commit a>和回滚陈述
默认为整个模块使用的承诺控件级别
CRTSQLRPGI XXXX COMMIT(*CHG)
exec sql设置选项commit =*chg;
请注意,模块中只能设置一个
set option
,它必须从物理上是第一个SQL语句,请参见源文件中的第一个SQL语句。最后,对于任何给定的SQL语句,您可以使用&xxx> 隔离– clause 。
Depends on what you mean by control...
There's the COMMIT and ROLLBACK statements
You can control the level of commitment control used by default for the entire module via
CRTSQLRPGI xxxx COMMIT(*CHG)
exec SQL set option commit=*CHG;
Note that there can be only one
SET OPTION
in the module and it must physically be the first SQL statement see in the source file.Lastly, for any given SQL statement, you can override the default commitment level by using the
WITH <xxx>
isolation–clause.