是什么让DB2存储过程自动提交了DML操作
我用的DB2 ESE V9.7, Run 'db2ce', 运行以下代码:
connect to sample @
create table s1.t1( id int)@
create procedure s1.p1
begin
insert into s1.t1 values(1);
end @
call s1.p1 @
select id from s1.t1@
结果表中已经生成记录了。我已经将db2 command options 中的auto-commit 设置为off了,是用db2set DB2OPTIONS=+c 的;考虑到工具的配置项可能会有影响,已将命令窗口中的自动提交取消,但还是会生成记录到表中,这是怎么回事? 请帮忙,谢谢。