【基础】ORACLE中on commit preserve rows和 on commit delete rows的区别

首先on commit preserve rows 和 on commit delete rows 都是在oracle 创建临时表时用到的,

delete rows用于事务相关,也就在事务结束后truncate data in the temporary table.
preserve rows表示在会话结束后清除临时表的数据

前者在事务提交后数据就已经清除了.
后者在会话中止时或者导常退出时数据都会被清除掉.
原文地址:https://www.cnblogs.com/tomatoes-/p/7521791.html