频道栏目
首页 > 资讯 > Oracle > 正文

Oracle Database 12c SQL面试题:constraints约束

18-06-14        来源:[db:作者]  
收藏   我要投稿

Q6.Which two statements are true regarding constraints (Choose two)

A. A constraint is enforced only for an INSERT operation on a table.

B. A foreign key cannot contain NULL values.

C. The column with a UNIQUE constraint can store NULLS.

D. You can have more than one column in a table as part of a primary key.

Correct Answer: CD

对于 A 选项,foreign key 可以包含 null

对于 C 选项,constaint 在 delete,update 的时候也会应用。

对于 E 选项,not null 不能在表级别定义,只能在列级别定义。

相关TAG标签
上一篇:ERROR: CASE types integer and character varying cannot be matched报错问题及解决办法
下一篇:undolog实现事务原子性,redolog实现事务的持久性的方法讲解
相关文章
图文推荐

关于我们 | 联系我们 | 广告服务 | 投资合作 | 版权申明 | 在线帮助 | 网站地图 | 作品发布 | Vip技术培训 | 举报中心

版权所有: 红黑联盟--致力于做实用的IT技术学习网站