暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

在Oracle中,CREATE GLOBAL TEMPORARY TABLE()

DB宝 2017-05-03
1329


Q
题目如下所示:

  You issued the following command:

CREATE GLOBAL TEMPORARY TABLE admin_work_area

(startdate DATE,

enddate DATE,

class CHAR(20))

ON COMMIT DELETE ROWS

TABLESPACE tbs_t1;

An index is then created on the ADMIN_WORK_AREA temporary table.  Which two statements are true regarding the TBS_T1 tablespace in the above command? (Choose two.)

AIt stores only the temporary table but not its indexes.

BIt stores both the temporary table as well as its indexes.

CIt must be a nondefault temporary tablespace for the database.

DIt can be a default or nondefault temporary tablespace for the database.

EIt must be the default temporary tablespace of the user who issues the command.


     

A
答案:B、D。


本题中的命令是在TBS_T1表空间中创建了一个事务临时表ADMIN_WORK_AREA,并且在该临时表上创建了一个索引,最后要求选出有关TBS_T1表空间的2个正确的选项。

本题中,对于选项ATBS_T1表空间只存数据而不存索引,说法错误,应该都存储。所以,选项A错误。

对于选项BTBS_T1表空间即存储数据也存储索引,说法正确。所以,选项B正确。

对于选项CTBS_T1表空间必须是非默认的表空间,说法错误,默认和非默认都可以。所以,选项C错误。

对于选项DTBS_T1表空间可以是一个默认或非默认的数据库的临时表空间。所以,选项D正确。

对于选项ETBS_T1表空间必须是默认的表空间,说法错误,默认和非默认都可以。所以,选项E错误。

所以,本题的答案为BD






DB笔试面试历史连接
http://mp.weixin.qq.com/s/Vm5PqNcDcITkOr9cQg6T7w






About Me:小麦苗

 本文作者:小麦苗,只专注于数据库的技术,更注重技术的运用

● 作者博客地址:http://blog.itpub.net/26736162/abstract/1/

 文章内容来源于作者的学习笔记,部分整理自网络,若有侵权或不当之处还请谅解

 版权所有,欢迎分享本文,转载请保留出处



长按下图识别二维码或微信扫描下图二维码来关注小麦苗的微信公众号:xiaomaimiaolhr,学习最实用的数据库技术。

最后修改时间:2020-01-10 21:18:17
文章转载自DB宝,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论