设为unique的列的值是不能重复的,用来唯一区别unique列的值
primary key列不可以有null值,而unique列是可以有null的
primary key列和unique列都不可以有null值
primary key用来在表中设置主键,主键列的值是可以重复的,用来唯一标识表中的每一条记录
第1题:
下列关于数据库表和自由表的描述中错误的是( )。
A.数据库表和自由表都可以用表设计器来建立
B.数据库表和自由表都支持表间联系和参照完整性
C.自由表可以添加到数据库中成为数据库表
D.数据库表可以从数据库中移出成为自由表
第2题:
A.The list of column names in the FOREIGN KEY clause can be a subset of the list of column names in the primary key of T2 or a UNIQUE constraint that exists on T2.
B.The list of column names in the FOREIGN KEY clause can be a subset of the list of column names in the primary key of T1 or a UNIQUE constraint that exists on T1.
C.The list of column names in the FOREIGN KEY clause must be identical to the list of column names in the primary key of T2 or a UNIQUE constraint that exists on T2.
D.The list of column names in the FOREIGN KEY clause must be identical to the list of column names in the primary key of T1 or a UNIQUE constraint that exists on T1.
第3题:
此题为判断题(对,错)。
第4题:
以下关于索引的哪个说法是对的()
第5题:
以下关于数据库逻辑设计叙述错误的是______。
A) 数据库逻辑设计是面向机器世界的
B) 这个阶段将按照数据库管理系统支持的数据模型来组织和存储数据
C) 目标是得到实际的数据库管理系统可处理的数据库模式,并做到数据结构合理
D) 包括定义和描述数据库的局部逻辑结构、数据之间的关系、数据完整性及安全性要求等
A.
B.
C.
D.
第6题:
SQL语言中实现候选码约束的语句是(24)。
A.用Candidate Key指定
B.用Primary Key指定
C.用UNIQUE NOT NULL约束指定
D.用UNIQUE约束指定
第7题:
68 、公司网络采用单域结构进行管理,域中有一台数据库服务器,为存贮公司数据,建立了名为information的数据库。管理员用以下语句建立了一个新表。
CREATE TABLE emp_info
(
emp_ID int PRIMARY KEY,
emp_Name varchar(50) UNIQUE,
emp_Address varchar(50) UNIQUE)系统在该表上自动创建()索引。
A 复合
B 惟一
C 聚集
D 非聚集
第8题:
在SQL在CREATE TABLE命令中用于定义满足实体完整性的主索引的短语是 A) DEFAULT B) UNIQUE C)CHECK D) PRIMARY KEY
第9题:
在数据表定义时设置Primary key是数据库的实体完整性控制。
第10题:
下列关于完整性约束的叙述中,正确的是()。