OCP-1Z0-051 第48题 索引

来源:互联网 发布:ping测试网络 编辑:程序博客网 时间:2024/04/27 16:52
一、原题
Which two statements are true regarding indexes? (Choose two.)
A. They can be created on tables and clusters.
B. They can be created on tables and simple views.
C. You can create only one index by using the same columns.
D. You can create more than one index by using the same columns if you specify distinctly different combinations of the columns.

答案:AD
二、题目翻译
关于索引哪两个句子是正确的?(选择两个)
A. 可以在表(tables)和簇(clusters)上建立索引
B. 可以在表和简单视图上创建索引
C. 同一个列只能创建一个索引
D. 如果你指定了不同列组合,可以使用相同的列创建多个索引
三、题目解析
B不正确因为简单视图上不能创建索引
C选项不正确,D选项正确

C、D可以参考11g的联机文档的INDEX部分:
http://docs.oracle.com/cd/E11882_01/server.112/e40540/indexiot.htm#CNCPT88833

摘录如下:
You can create multiple indexes using the same columns if you specify distinctly different permutations of the columns. For example, the following SQL statements specify valid permutations:
相同列上可以创建多个索引,如果指定了不同列组合,下面的例子就是有效的:
CREATE INDEX employee_idx1 ON employees (last_name, job_id);
CREATE INDEX employee_idx2 ON employees (job_id, last_name);
0 0
原创粉丝点击