首页 > 其他 > 详细

临时表

时间:2014-12-11 15:38:33      阅读:362      评论:0      收藏:0      [点我收藏+]

会话级临时表

create global temporary table tmp1

on commit perserve rows

as select * from emp;

会话结束时表内的数据清空,表结构还存在。

事务级临时表

create global temporary table tmp2

as select * from emp;

事务结束后,表内数据清空。

查看临时表:

select table_name,temporary,duration from user_tables;

临时表

原文:http://www.cnblogs.com/wangyameng/p/4157548.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!