考试报名
考试报名
考试内容
考试大纲
在线客服
返回顶部

备考刷题,请到

CDA认证小程序

Understanding table structure data characteristics is a prerequisite for using table structure data. Which of the following descriptions about table structure data characteristics is correct?
A. A table can only have one data type
B. Fields cannot contain null values
C. One record row can only have one data type
D. Primary keys can consist of multiple fields
上一题
下一题
收藏
点赞
评论
题目解析
题目评论(0)

A field can only have one data type, fields can contain null values, a record row can have different data types, so the first three are incorrect and the correct description is D.

正确答案是:D: 主键可以由多个字段组成。

专业分析:

A: 一个表只能有一种数据类型 - 这种说法是错误的。一个表中的不同字段可以有不同的数据类型,例如整数、字符串、日期等。

B: 字段不能包含空值 - 这种说法也是错误的。字段是可以包含空值的,除非在设计表结构时明确规定某个字段不允许为空(NOT NULL)。

C: 一条记录行只能有一种数据类型 - 这种说法也是错误的。一条记录行中的每个字段可以有不同的数据类型,例如一个字段是整数类型,另一个字段是字符串类型。

D: 主键可以由多个字段组成 - 这种说法是正确的。在数据库设计中,复合主键(Composite Key)是由两个或多个字段组合而成的主键,用于唯一标识表中的每一条记录。

综上所述,D选项是关于表结构数据特征的正确描述。