专业编程教程与实战项目分享平台

网站首页 > 技术文章 正文

数据库笔试面试129——在Oracle中,有关临时表说法正确的是?

ins518 2024-10-23 13:01:46 技术文章 12 ℃ 0 评论

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.)

A、It stores only the temporary table but not its indexes.

B、It stores both the temporary table as well as its indexes.

C、It must be a nondefault temporary tablespace for the database.

D、It can be a default or nondefault temporary tablespace for the database.

E、It must be the default temporary tablespace of the user who issues the command.

答案:B、D。

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

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

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

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

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

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

所以,本题的答案为B、D。

本文暂时没有评论,来添加一个吧(●'◡'●)

欢迎 发表评论:

最近发表
标签列表