码迷,mamicode.com
首页 > 其他好文 > 详细

052-176

时间:2017-12-15 11:39:32      阅读:125      评论:0      收藏:0      [点我收藏+]

标签:会话   时间   处理   span   epo   his   持续时间   sub   ble   

You executed this command to create a temporary table:
SQL> CREATE GLOBAL TEMPORARY TABLE report_work_area (startdate DATE, enddate DATE, class CHAR(20)) ON COMMIT PRESERVE ROWS;
Which statement is true about the rows inserted into the REPORT_WORK_AREA table during a transaction?
A.The rows stay in the table only until session termination.
B.The rows stay in the table only until the next transaction starts on the table.
C.The rows are visible to all current sessions after the transaction is committed.
D.The rows stay available for subsequent sessions after the transaction is committed.

因为使用了 ON COMMIT PRESERVE ROWS;即指定插入行的生存期为会话的持续时间
ON COMMIT DELETE ROWS :指定插入行的生存期仅为事务处理的持续时间

052-176

标签:会话   时间   处理   span   epo   his   持续时间   sub   ble   

原文地址:http://www.cnblogs.com/Babylon/p/8042147.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!