网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
在学生成绩表tblCourseScore中的列Score用来存放某学生学习某课程的考试成绩(0~100分,没有小数),用下面的哪种类型最节省空间?()
- A、int
- B、smallint
- C、tinyint
- D、decimal(3,0)
参考答案
更多 “在学生成绩表tblCourseScore中的列Score用来存放某学生学习某课程的考试成绩(0~100分,没有小数),用下面的哪种类型最节省空间?()A、intB、smallintC、tinyintD、decimal(3,0)” 相关考题
考题
在学生成绩表SM中,查找成绩>=90(其中“SCORE”为字段名)的学生名单的SQL-SELECT语句中,应加上______选项。A.FOR SCORE>=90B.WHILE SCORE>=90C.WHERE SCORE>=90D.ORDER SCORE>=90
考题
成绩表grade中字段score代表分数,以下()语句返回成绩表中的最低分。A.selectmax(score)fromgrade
B.Selectrrun(score)fromgrade
C.selecttop1scorefromgradeorderbyscoreasc
D.selecttop1scorefromgradeorderbyscoredesc
考题
在ORM查询中,对于分数模型Score,包含math_score,english_score,chinese_score,username四个字段,如果以math_score优先,english_score为次优先进行排序?()A、Score.objects.all().order_by(’math_score’).order_by(’english_score’)B、Score.objects.all().order_by(’english_score’).order_by(’math_score’)C、Score.objects.all().order_by(’english_score’,’math_score’)D、Score.objects.all().order_by(’math_score’,’english_score’)
考题
成绩表grade中字段score代表分数,以下()语句返回成绩表中的最低分。(选择两项)A、select max(score) from gradeB、select top 1 score from grade order by score ascC、Select min(score) from gradeD、select top 1 score from grade order by score desc
考题
如果已经在学生表和成绩表之间按学号建立永久关系,现要设置参照完整性:当在成绩表中添加记录时,凡是学生表中不存在的学号不允许添加,则该参照完整性应设置为()。A、更新级联B、更新限制C、插入级联D、插入限制
考题
学生成绩表grade中有字段score(float),现在要把所有在55分至60之间的分数提高5分,以下sql语句正确的是()A、Update grade set score=score+5B、Update grade set score=score+5 where score=55 or score =60C、Update grade set score=score+5 where score between 55 and 60D、Update grade set score=score+5 where score =55 and score =60
考题
执行Sql语句:select score*0.5+20as加权成绩from grade where(score*0.5+20)60order by score*0.5+20,以下()描述是正确的。A、错误提示:orderby子句中不能出现表达式。B、正确执行,显示grade表中各列值,按照score由低到高排序。C、正确执行,显示grade表中各列值,以及加权成绩列,按照score由低到高排序。D、错误提示:where子句中不能出现表达式。
考题
在学生成绩表中,查询成绩为70—80分之间(不包括80)的学生信息。正确的条件设置为()A、69 or 80B、Between 70 and 80C、=70 and 80D、in(70,79)
考题
成绩表grade中字段st_id代表学号,score代表分数,以下()语句返回成绩表中的最低分。A、SELECT max(score) FROM gradeB、SELECT TOP 1 score FROM grade ORDERBY score ASCC、SELECT st_id,MIN(score) FROM gradeD、SELECT TOP 1 score FROM grade ORDERBY score DESC
考题
单选题学生成绩表grade中有字段score(float),现在要把所有在55至60分之间的分数提高5分,以下SQL语句正确的是()。A
Update grade set score=score+5 where score in 55..60B
Update grade set score=score+5 where score =55 AND score =60C
Update grade set score=score+5 where score between 55 or 60D
Update grade set score=score+5 where score =55 and score =60
考题
多选题成绩表grade中字段score代表分数,以下()语句返回成绩表中的最低分。Aselect max(score) from gradeBselect top 1 score from grade order by score ascCSelect min(score) from gradeDselect top 1 score from grade order by score desc
考题
多选题成绩表grade中字段score代表分数,以下()语句返回成绩表中的最低分。Aselect max(score)from gradeBselect top1score from grade order by score ascCSelect min(score)fromgradeDselect top1score from grade order by score desc
考题
单选题如已在学生表和成绩表之间按学号建立永久关系,现要设置参照完整性:当在成绩表中添加记录时,凡是学生表中不存在的学号不允许添加,则该参照完整性应设置为()A
更新级联B
更新限制C
插入级联D
插入限制
考题
单选题执行Sql语句:select score*0.5+20as加权成绩from grade where(score*0.5+20)60order by score*0.5+20,以下()描述是正确的。A
错误提示:orderby子句中不能出现表达式。B
正确执行,显示grade表中各列值,按照score由低到高排序。C
正确执行,显示grade表中各列值,以及加权成绩列,按照score由低到高排序。D
错误提示:where子句中不能出现表达式。
考题
单选题在学生成绩表tblCourseScore中的列Score用来存放某学生学习某课程的考试成绩(0~100分,没有小数),用下面的哪种类型最节省空间?()A
intB
smallintC
tinyintD
decimal(3,0)
考题
单选题执行SQL语句:select*,score*0.5+20 as 加权成绩from grade where(score*0.5+2060orderbyscore*0.5+20,以下描述是正确的()。A
错误提示:orderby子句中不能出现表达式。B
正确执行,显示grade表中各列值,按照score由低到高排序。C
正确执行,显示grade表中各列值,以及加权成绩列,按照score由低到高排序。D
错误提示:where子句中不能出现表达式。
热门标签
最新试卷