问题 问答题

为“成绩”表中“总分”字段增加有效性规则:“总分必须大于等于0并且小于等于750”,正确的SQL语句是:
______ TABLE 成绩 ALTER 总分 ______ 总分>=0 AND 总分<=750

答案

参考答案:ALTER SET CHECK

解析: 用于定义、修改和删除有效性规则和默认值定义的ALTER命令格式为
ALTER TABLE TableNamel ALTER [COLUMN] FieldName2 [NULL | NOT NULL]
[SET DEFAULT eExpression2][SET CHECK 1Expression2 [ERROR cMessageText2]][DROP DEFAULT][DROP CHECK]
“SET DEFAULT eExpression2”用于设置或修改默认值,“SET CHECK 1Expression2”用于为字段增加或修改有效性规则,“DROP DEFAULT”用于删除默认值,“DROP CHECK”用于删除有效性规则。

单项选择题
单项选择题

The effect of the baby boom on the schools helped to make possible a shift in thinking about the role of public education in the 1920’s. In the 1920’s, but especially (1) the Depression of the 1930’s, the United States experienced a (2) birth rate. Then with the prosperity (3) on by the Second World War and the economic boom that followed it, young people married and (4) households earlier and began to (5) larger families than had their (6) during the Depression. Birth rates rose to 102 per thousand in 1946, 106.2 in 1950, and 118 in 1955. (7) economics was probably the most important (8) , it is not the only explanation for the baby boom. The increased value placed (9) the idea of the family also helps to (10) this rise in birth rates. The baby boomers began streaming (11) the first grade by the mid-1940’s and became a (12) by 1950. The public school system suddenly found itself (13) The wartime economy meant that few new schools were buih between 1940 and 1945. (14) , large numbers of teachers left their profession during that period for better-paying jobs elsewhere.

(15) , in the 1950’s, the baby boom hit an antiquated and inadequate school system. Consequently, the custodial rhetoric of the 1930’s no longer made (16) ; keeping youths ages sixteen and older out of the labor market by keeping them in school could no longer be a high (17) for an institution unable to find space and staff to teach younger children. With the baby boom, the focus of educators (18) turned toward the lower grades and back to basic academic skills and (19) . The system no longer had much (20) in offering nontraditional, new, and extra services to older youths.

8()

A.tenant

B.determinant

C.lubricant

D.repentant