码迷,mamicode.com
首页 > 其他好文 > 详细

1Z0-052 中英文解析(2)

时间:2017-04-18 11:46:26      阅读:148      评论:0      收藏:0      [点我收藏+]

标签:1z0-052 中英文解析(2)

Examine the following statement that is used to modify the primary key constraint on the SALES table:  

SQL> ALTER TABLE SALES MODIFY CONSTRAINT pk DISABLE VALIDATE;  

Which three statements are true regarding the above command? (Choose three.)  

A. The constraint remains valid. 

B. The index on the constraint is dropped. 

C. It allows the loading of data into the table using SQL *Loader. 

D. New data conforms to the constraint, but existing data is not checked. 

E. It allows the data manipulation on the table using INSERT/UPDATE/DELETE SQL statements. 


检查下面用于修改SALES 表主键约束的语句:  

SQL> ALTER TABLE SALES MODIFY CONSTRAINT pk DISABLE VALIDATE;  

哪三句是正确的关于上面的命令?(选择三个) 

A. 约束仍然有效 

B. 约束上的索引被删除 

C. 允许使用 SQL*Load加载数据到表中 

D. 新的数据符合约束,已经存在的数据不会被检查 

E. 允许在表上对数据使用 INSERT/UPDATE/DELETE SQL语句 


A正确,因为DISABLE VALIDATE对现有的数据仍然有约束 

B正确,因为DISABLE VALIDATE状态会删除索引 

C正确,因为 DISABLE VALIDATE对新增加的数据没有约束 

D错误,因为DISABLE VALIDATE是对现有的数据有约束,新增的没有 

E错误,因为DISABLE VALIDATE不允许对有约束条件的列进行任何修改 


知识点:

启用约束:
enable( validate) :启用约束,创建索引,对已有及新加入的数据执行约束.
enable novalidate :启用约束,创建索引,仅对新加入的数据强制执行约束,而不管表中的现有数据. 不检查已经存在的数据

禁用约束:
disable( novalidate):关闭约束,删除索引,可以对约束列的数据进行修改等操作.
disable validate :关闭约束,删除索引,不能对表进行 插入/更新/删除等操作.不检查新增的数据




1Z0-052 中英文解析(2)

标签:1z0-052 中英文解析(2)

原文地址:http://xiaosix.blog.51cto.com/8661882/1916892

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!