Prayer

在一般中寻求卓越
posts - 1256, comments - 190, trackbacks - 0, articles - 0
  C++博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

on commit delete rows 和on commit preserve rows的区别

Posted on 2010-05-13 23:00 Prayer 阅读(7865) 评论(0)  编辑 收藏 引用 所属分类: DB2
文档讲此二者皆用于temporary table,
delete rows用于事务相关,也就在事务结束后truncate data in the temporary table.
preserve rows表示在会话结束后清除临时表的数据

前者在事务提交后数据就已经清除了.
后者在会话中止时或者导常退出时数据都会被清除掉.

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理