欢迎投稿

今日深度:

OCP-1Z0-051-题目解析-第29题

OCP-1Z0-051-题目解析-第29题


29. Which two statements are true regarding constraints? (Choose two.) 
A. A foreign key cannot contain NULL values. 
B. The column with a  UNIQUE  constraint can store NULLS . 
C. A constraint is enforced only for an INSERT operation on a table. 
D. You can have more than one column in a table as part of a primary key.
 
Answer: BD 


A:外键约束不能包含空值(错误,只有非空约束和主键约束不能包含空值)。
B:唯一约束的字段可以存储空值(正确,因为NULL<>NULL)
C:一个表上的约束只对插入操作起作用(错误,Update、delete同样起作用)。
D:可以在一个表中定义超过一个字段作为主键(正确,可以同时定义多个字段共同作为主键,如CONSTRAINT it_pk PRIMARY KEY (ord_no,item_no))

www.htsjk.Com true http://www.htsjk.com/shujukunews/1831.html NewsArticle OCP-1Z0-051-题目解析-第29题 29. Which two statements are true regarding constraints? (Choose two.) A. A foreign key cannot contain NULL values. B. The column with a UNIQUE constraint can store NULLS . C. A constraint is enforced only...
相关文章
    暂无相关文章
评论暂时关闭