Oracle 1z0-071 2019.10最新题库&解答11-15

本文提供了Oracle 1z0-071考试的五道题目及答案解析,涉及自连接、删除和未使用列管理、数值处理、子查询以及表达式操作。解释了如何处理未使用的列,以及在更新和查询时的注意事项。
摘要由CSDN通过智能技术生成

QUESTION 11

Choose two.

Which two statements are true about a self
join?

A) The join key column must have an index.

B) It can be a left outer join.

C) It must be a full outer join.

D) It can be an inner join.

E) It must be an equijoin.

Correct Answer: BD

QUESTION 12

Choone two

Which three statements are true about
dropping and unused columns in an Oracle database?

A) A primary key column referenced by another
column as a foreign key can be dropped if using the CASCADE option.

B) A DROP COLUMN command can be rolled back

C) An UNUSED column’s space is reclaimed
automatically when the block containing that column is next queried

D) An UNUSED column’s space is reclaimed
automatically when the row containing that column is next queried.

E) Partition key columns cannot be dropped.

F) A column that is set to NNUSED still
counts towards the limit of 1000 columns per table.

Correct Answer: AEF

ORA-12984: 无法删除分区列,E 对;

删除主键列时可以加 cascade 选项,同时把主外键约束一起删除。

官档:SQL langauage reference

20.7.8.2 Marking Columns Unused

If you are concerned about the length of time it could
take to drop column data from all of the rows in a large table, you can use the
ALTER TABLE…SET UNUSED statement.

This statement marks one or more columns as unused, but
does not actually remove the target column data or restore the disk space
occupied by these columns. However, a column that is marked as unused is not
displayed in queries or data dictionary views, and its name is removed so that
a new column can reuse that name. In most cases, constraints, indexes, and
statistics defined on the column are also removed. The exception is that any
internal indexes for LOB columns that are marked unused are not removed.

To mark the hiredate and mgr columns as unused, execute
the following statement:

ALTER TABLE hr.admin_emp SET UNUSED (hiredate, mgr);

ALTER TABLE TESTD2 DROP UNUSED COLUMNS;

You can la

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值