咖啡仔

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

 

使用以下语句创建了一个全局的临时表,在提交后就会清空数据。

1  create global temporary table temp_t on commit preserve rows as select * from a

在使用

1  execute immediate 'insert into temp_t  select * from a;

如果使用了 commit;

数据就会清空了,

我就曾因这样使用过,导致后面执行的数据老是没成功。


 

posted on 2011-12-31 17:09  咖啡仔  阅读(455)  评论(0编辑  收藏  举报