当然可以,只要在一个会话里面就可以访问到。
如果你是动态创建临时表,也需要动态写sql语句进行访问类似于
execute immediate 'select colname,colname2 from tbtemp where ...' into v_col1,v_col2;
如果你是动态创建临时表,也需要动态写sql语句进行访问类似于
execute immediate 'select colname,colname2 from tbtemp where ...' into v_col1,v_col2;
好像只有在一个会话里才能访问!
temptable is global
then
other session also can access;
else
null;
end if