专栏首页用户5892232的专栏OCP-052考试题库汇总(46)-CUUG内部解答版
原创

OCP-052考试题库汇总(46)-CUUG内部解答版

Examine this command:

SQL> CREATE GLOBAL TEMPORARY TABLE report_work_area

(startdate DATE,

enddate DATE,

class CHAR(20)) ON COMMIT PRESERVE ROWS;

Which three statements are true about rows inserted into REPORT_WORK_AREA?

A)Rows will be lost if a ROLLBACK is done.

B)Rows will be lost upon session failure.

C)Rows are visible to all sessions logged in by the same user until the session that inserted the rows terminates.

D)Rows are visible to all sessions logged in by all users granted the DBA role until the session that inserted the rows terminates.

E)Rows will be lost upon session normal termination.

F)Rows are visible globally to all sessions logged in by any user until the session that inserted the rows terminates.

Answer: ABE

赵:

on commit delete rows,事务提交时自动删除临时表中的记录。

on commit preserve rows,当用户退出 session 时(会话结束后)自动清除临时表的数据。

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

CDF 错,Temporary Table 的数据存放在 PGA 或临时表空间下,它被每个 session 单独使用,即隔离session 间的数据,每个 session 只能看到自己的数据。

原创声明,本文系作者授权云+社区发表,未经许可,不得转载。

如有侵权,请联系 yunjia_community@tencent.com 删除。

我来说两句

0 条评论
登录 后参与评论

相关文章

  • OCP-052考试题库汇总(11)-CUUG内部解答版

    Which two are true about Optimizer Statistics?

    用户5892232
  • 【2019年8月版】OCP 071认证考试原题-第43题

    A) It drops any triggers defined on the table.

    用户5892232
  • OCP-052考试题库汇总(16)-CUUG内部解答版

    Which three are true about AWR snapshots?

    用户5892232
  • Node.js 开发模式(设计模式)

    Asynchronous code & Synchronous code As we have seen in an earlier post (here), ...

    庞小明
  • String Modification (CodeCraft-20 (Div. 2))

    Vasya has a string s of length n. He decides to make the following modification ...

    dejavu1zz
  • 聊聊pg jdbc statement的maxRows参数

    postgresql-9.4.1212.jre7-sources.jar!/org/postgresql/core/v3/QueryExecutorImpl.j...

    codecraft
  • Modifying namespace in XML document programmatically

    Modifying namespace in XML document programmatically static XElement stripNS(XEl...

    阿新
  • 如何通过solc编译solidity编写的以太坊智能合约

    solidity编写的以太坊智能合约可通过命令行编译工具solc来进行编译,成为以太坊虚拟机中的代码。solc编译后最终部署到链上形成我们所见到的各种智能合约。

    笔阁
  • Codeforce 1251C. Minimize The Integer

    C. Minimize The Integer time limit per test2 seconds memory limit per test256 ...

    风骨散人Chiam
  • Codeforce-Ozon Tech Challenge 2020-B. Kuroni and Simple Strings(贪心)

    B. Kuroni and Simple Strings time limit per test1 second memory limit per test...

    风骨散人Chiam

扫码关注云+社区

领取腾讯云代金券