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.
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.
相关文章推荐
- 1Z0-051 QUESTION 28 关于约束
- 1Z0-051 QUESTION 9 关于INTERSECT的用法
- 1Z0-051 QUESTION 31 关于check约束
- 1Z0-051 QUESTION 36 create table中约束应注意的地方
- OCP 1Z0 051 QUESTION NO: 29
- 1Z0-051 QUESTION 37 关于drop table
- OCP-1Z0-051 补充题库 第14题 关于表约束的视图
- OCP 1Z0 051 QUESTION NO: 5
- OCP 1Z0 051 QUESTION NO: 47
- OCP 1Z0 051 QUESTION NO: 56
- OCP-1Z0-新051-61题版本-29
- OCP 1Z0 051 QUESTION NO: 6
- OCP 1Z0 051 QUESTION NO: 35
- OCP 1Z0 051 QUESTION NO: 48
- OCP 1Z0 051 QUESTION NO: 52
- OCP 1Z0 051 QUESTION NO: 54
- OCP-1Z0-051 第46题 约束和索引
- 1Z0-051 QUESTION 4 单行函数Single-Row Functions
- 1Z0-051 QUESTION 12 别名和INITCAP的运用
- 1Z0-051 QUESTION 16 Q操作符的使用