创建临时表

create global temporary table temp_a
(i int)
on commit delete rows;--当事务完成时,行会消失

下面是我在自己的机器上的实验结果(OS:Windows XP SP2 DB:Oracle 10.2.0)
>conn scott@zyynet/tiger

>create global temporary table temp_a
(i int)
on commit delete rows;

>insert into tmp_a
(i)
values
(1);

已创建1行
>select * from tmp_a;
           I
---------------
            1

>commit;

提交完成


>select * from tmp_a;
未选定行

你可能感兴趣的:(oracle,windows,XP,OS)