oracle临时表应用

eg:临时表的应用场景,比如:电子商务的购物车,就必须只在此用户中有效,退出的时候就该清空此临时表。

oracle的临时表分为两种情况:
会话级临时表
事务级临时表
1、会话级别临时表的建立如下:
create global temporary table temp_table_liyang (id number)on commit preserve rows
2、事务级临时表的建立如下:
create global temporary table temp_table_liyang1(id varchar2(6))on commit delete rows

 

posted @ 2014-03-03 15:05  离子  阅读(287)  评论(0编辑  收藏  举报