28.Which two statements are true regarding constraints?
来源:互联网 发布:coc地震升级数据 编辑:程序博客网 时间:2024/06/04 19:15
28.Which two statements are true regarding constraints?
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.
答案:BD
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.
答案:BD
A:错误
create table test1(a number constraint un_a unique); insert into test1 values(1);commit;create table test2 (a number,constraint fk_a foreign key(a) references test1(a));insert into test2 values(null);commit;--可以有null
B:正确
insert into test1 values(null);1.NOT NULL
create table test1 (a number constraint nu_a not null);create table test2 (a number constraint nu_a null);2.unique
create table test1 (a number constraint un_q unique);create table test2 (a number, constraint un_q unique(a));3.primary key
create table test1 (a number constraint pk_a primary key);create table test2 (a number, constraint pk_a primary key(a));4.foreign key
create table test1 (a number constraint pk_a primary key);create table test2 (a number constraint fk_a references test1(a));create table test3 (a number, constraint fk_a foreign key(a) references test1(a));5.check
create table test1 (a number constraint ck_a check(a<3));create table test1 (a number,constraint ck_a check(a<3));5.REF:可以定义在列和表上,下面是个简单例子,这里其实又分3种
create type type_test as object(a number);create table type_table_test of type_test;create table type_table_ref (a number,b ref type_test scope is type_table_test);
0 0
- 28.Which two statements are true regarding constraints?
- 35.Which two statements are true regarding constraints? (Choose two.)
- 29.Which two statements are true regarding constraints?
- 1Z0-051 35. Which two statements are true regarding constraints? (Choose two.)
- 38.Which two statements are true regarding views? (Choose two.)
- 41.Which two statements are true regarding views? (Choose two.)
- 48.Which two statements are true regarding indexes? (Choose two.)
- 133.Which two statements are true regarding subqueries? (Choose two.)
- 175.Which two statements are true regarding savepoints? (Choose two.)
- 130.Which two statements are true regarding listeners? (Choose two.)
- 27.Which two statements are true regarding tables?
- 4.Which two statements are true regarding single row functions? (Choose two.)
- 67.Which two statements are true regarding the ORDER BY clause? (Choose two.)
- 80.Which two statements are true regarding working with dates? (Choose two.)
- 108.Which two statements are true regarding the COUNT function? (Choose two.)
- 121.Which two statements are true regarding the USING clause in table joins? (Choose two .)
- 170.Which two statements are true regarding the DELETE and TRUNCATE commands? (Choose two.)
- 26.Which two statements are true regarding undo tablespaces? (Choose two.)
- linux添加头文件路径
- 直接拿来用!最火的Android开源项目(完结篇)
- error C2039: 'bitset' : is not a member of 'std'
- Centos 6.7 安装 php 5.5
- SDWebImage的使用以及内部执行流程
- 28.Which two statements are true regarding constraints?
- 在C++中侦测内嵌型别的存在(rev#2)
- 在 Linux 上找出并解决程序错误的主要方法
- 深入理解 Java中的 流 (Stream)
- vc++多线程案例
- 一个有两秒轮询滚动的scrollView
- 基于屏幕触摸事件的签名实现和对签名的保存
- eclipse使用design中的NavigationView
- 我们的翻转课堂-学期总结