052-224(新增70题2018)

本文探讨了Oracle数据库中主键约束的实现细节,包括确保指定列或列集合中没有重复值,以及主键列不允许出现空值。文章还讨论了在创建主键约束时会自动创建唯一索引的情况。

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

View the Exhibit to see the data in the emp table.

You created a PRIMARY KEY constraint on the empno column of the emp table, and the constraint is not deferred.

Which two statements are true in this scenario? (Choose two.)

Exhibit:

A. No index would be created or used in this case.

B. A unique index on the empno column would be created.

C. A CHECK constraint would be enforced on the empno column.

D. A NOT NULL constraint would be enforced on the empno column.

E. A bitmap unique index would be created on the empno column.

Answer: BD

Primary Key Constraints

The Oracle Database implementation of the primary key constraint guarantees that the following statements are true:

  • No two rows have duplicate values in the specified column or set of columns.

  • The primary key columns do not allow nulls.

转载于:https://www.cnblogs.com/Babylon/p/8615990.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值