OCP-1Z0-051-题目解析-第28题
发布日期:2021-06-24 18:06:47 浏览次数:5 分类:技术文章

本文共 603 字,大约阅读时间需要 2 分钟。

28. Which two statements are true regarding constraints? (Choose two.) 
A. A foreign key cannot contain NULL values. 
B. A column with the UNIQUE constraint can contain NULL values. 
C. A constraint is enforced only for the INSERT operation on a table. 
D. A constraint can be disabled even if the constraint column contains data. 
E. All constraints can be defined at the column level as well as the table level. 
Answer: BD 
A:外键约束不能包括空值(错误,仅仅有非空约束和主键约束不能包括空值)。
B:唯一约束能够包括空值(正确,由于NULL<>NULL)
C:一个表上的约束仅仅对插入操作起作用(错误,Update、delete相同起作用)。
D:即使字段上有数据,该字段上的约束也能够被停用(正确)
E:全部的约束都能够定义在列级别和表级别(错误,Not Null仅仅能定义在列级别)。

转载地址:https://blog.csdn.net/weixin_34248258/article/details/85669363 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:2014 Visual Studio Contact(); 直播笔记
下一篇:很酷的C语言技巧

发表评论

最新留言

初次前来,多多关照!
[***.217.46.12]2024年04月16日 12时55分10秒