是这样 我有一个事务临时表 RcvBusinessHSESSION
我在存储过程A中 往这个表里插入了一部分数据
然后我A里面会调用另一个存储过程B
这个B会查询A刚才插入到临时表中的数据。
但是当我查询的时候 就提示我 试图访问已经在使用的事务处理临时表。。
求大神们帮忙解决一下。。
有没有什么暴力使用的方法。。
临时表存储过程
我在存储过程A中 往这个表里插入了一部分数据
然后我A里面会调用另一个存储过程B
这个B会查询A刚才插入到临时表中的数据。
但是当我查询的时候 就提示我 试图访问已经在使用的事务处理临时表。。
求大神们帮忙解决一下。。
有没有什么暴力使用的方法。。
临时表存储过程
create global temporary table test11 (a number) on commit preserve rows;
/create or replace procedure testa
is
begin
insert into test11 values(1);
testb;
end;
/create or replace procedure testb
is
begin
for i in (select * from test11) loop
dbms_output.put_line(i.a);
end loop;
end;
/begin
testa;
end;
create global temporary table test11 (a number) on commit delete rows;
也是ok的。