yjyyjy

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

Tow kinds of temp table data keep method.

One is delete when commit

Anothe one is preseve when commit.

E.g:

create global temporary table TABLE_ABC

(

            NUMBER  NUMBER(10)      NULL

)on commit preserve rows;

But data in temp table is connection in-dependent。

作用类似数据库里面开内存,访问表更方便。

因为数据是connection 独立的,所以一个问题需要注意的是:如果多线程使用不用的 DB connection 是无法数据互通的

 

posted on 2019-12-06 19:32  闭关49天  阅读(245)  评论(0编辑  收藏  举报