oracle创建临时表的语句
临时表:只在会话期间或在事务处理期间存在的表,临时表在插入数据时,动态分配空间。
创建临时表的语句:
create global temporary table temp_dept
(dno number,
dname varchar2(10))
on commit delete rows;
insert into temp_dept values(10,'ABC');
commit;
select * from temp_dept; --无数据显示,数据自动清除
on commit preserve rows:在会话期间表一直可以存在(保留数据)
on commit delete rows:事务结束清除数据(在事务结束时自动删除表的数据)
您可能感兴趣的文章:
oracle创建临时表的语句
mysql临时表使用注意事项
mysql临时表的创建与删除方法
MySQL临时表的简单用法详解
mysql创建与删除临时表示例
python temp是什么
ORACLE ORA-00600错误的阐述
mysql批量插入(insert)与批量更新(update)的例子
SQL PRIMARY KEY 约束
DB2基础知识(4)DB2编程技巧