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

本文探讨了在SALES表上修改主键约束时使用DISABLE VALIDATE选项的影响。文章详细解释了此操作后约束的有效性及其对索引的影响,并澄清了常见误解。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Examine the following statement that is used to modify the primary key constraint on theSALES 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.

Correct Answers: A B

【考点分析】约束的DISABLE VALIDATE属性 

【题意简述】把表的主键约束修改为DISABLE VALIDATE,描述正确的是?

【答案剖析】. 

A: 正确, DISABLE VALIDATE的约束是有效的 

B: 正确,主键约束会自动维护一个唯一性索引,约束enable,索引在,disable,索引不在

C: 错误, DISABLE VALIDATE不允许做DML操作,无法导入数据 

D: 错误, DISABLE VALIDATE的约束对已有数据校验,新数据不校验,说反了 E: 错误,不允许做INSERT/UPDATE/DELETE DML操作

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值