您的位置:首页 > 产品设计 > UI/UE

1Z0-051 QUESTION 29 关于约束

2014-05-11 19:54 369 查看
QUESTION 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.

答案:BD

ABC的解析查看QUESTION 28 ;

D选项正确,一个表可以有多个主键:

SQL> create table test (
2 id number(1),
3 t1 varchar2(20));

Table created.

SQL> alter table test add constraint pk_test primary key(id,t1);

Table altered.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: