052-224(新增70题2018)
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
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.
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步