说明:下文中的一些说明与示例代码摘自csdn,恕不一一指明出处,在此一并对相关作者表示感谢! 如果作者有异议,请来信说明
1 语法 在oracle中,可以创建以下两种临时表: 【程序编程相关:小程序--TextFilter 文本过滤】【推荐阅读:FLASH组件开发结构设计及架构】
1) 会话特有的临时表 【扩展信息:让solaris 9 x86支持鼠标滚轮】 create global temporary <table_name> (<column specification> ) on commit preserve rows;2) 事务特有的临时表
create global temporary <table_name> (<column specification> ) on commit delete rows; create global temporary table mytemptable 所建的临时表虽然是存在的,但是如果insert 一条记录然后用别的连接登上去select,记录是空的.--on commit delete rows 说明临时表是事务指定,每次提交后oracle将截断表(删除全部行)
--on commit preserve rows 说明临时表是会话指定,当中断会话时oracle将截断表. ... 下一页