为你找到 1000 条关于 变态心理的遗传学研究② 的结果
从Student表检索姓周的学生,对应的SQL语句是()。得分/总分A.Select*FromStudentWhereSnamelike'周%'B.Select*FromStudentWhereSnamelike'周_'C.Select*FromStudentWhereSnamelike'_周'D.Select*FromStudentWhereSnamelike'%周'
A
按照先后顺序依次显示学生表的最大、最小和平均年龄,对应的SQL语句是()。得分/总分A.SelectMAX(Sage),MIN(Sage),AVG(Sage)fromStudentB.SelectMAX,MIN,AVGSagefromStudentC.SelectMIN,MAX,AVGSagefromStudentD.SelectMIN(Sage),MAX(Sage),AVG(Sage)fromStudent
A
对教师表,按照教师的职称(Tprot字段)进行分组,统计每个职称的教师人数,对应的SQL语句是()。得分/总分A.SelectTprot,COUNT(*)fromTeacherOrderbyTprotB.SelectTprot,COUNT(*)fromTeacherGroupbyTprotC.SelectTprot,SUM(Tprot)fromTeacherGroupbyTprotD.SelectTprot,SUM(*)fromTeacherGroupbyTprot
B
将SC和Student表连接起来,显示学生的学号、姓名、课程号、考试分数,不正确的SQL语句是()。得分/总分A.SelectStudent.Sno,Student.Sname,SC.Cno,SC.GradeFromSCJoinStudentOnSC.Sno=Student.SnoB.SelectStudent.Sno,Student.Sname,SC.Cno,SC.GradeFromSC,StudentWhereSC.Sno=Student.SnoC.SelectStudent.Sno,Student.Sname,SC.Cno,SC.GradeFromSC,StudentOnSC.Sno=Student.SnoD.SelectStudent.Sno,Student.Sname,SC.Cno,SC.GradeFromStudentJoinSCOnSC.Sno=Student.Sno
C
使用嵌套查询,得到在SC表中Grade高于90分的学生的基本信息,正确的SQL语句是()。得分/总分A.Select*fromStudentwhereSnoExists(SelectSnofromSCwhereGrade>90)B.Select*fromStudentwhereSnoNotIn(SelectSnofromSCwhereGrade>90)C.Select*fromStudentwhereSnoIn(SelectSnofromSCwhereGrade>90)D.Select*fromStudentwhereSno=(SelectSnofromSCwhereGrade>90)
C
关于视图,描述错误的是()。得分/总分A.创建视图的SQL语句中不能使用INTO子句B.不能在临时表或表变量上创建视图C.更新视图是指通过视图对基本表的数据进行修改,更新视图没有任何限制D.创建视图的SQL语句中不能使用ORDERBY子句
C
对Course表,使用课程号,课程名,学分,及额外增加的iXueshi字段创建视图,学时为学分乘以16,正确的SQL语句是()。得分/总分A.CreateProcShiTuAsSelectCno,Cname,Ccredit,Ccredit*16asiXueshifromCourseB.CreateIndexShiTuAsSelectCno,Cname,Ccredit,Ccredit*16asiXueshifromCourseC.CreateViewShiTuAsSelectCno,Cname,Ccredit,Ccredit*16asiXueshifromCourseD.CreateViewShiTuAsSelectCno,Cname,Ccredit,Ccredit*16fromCourse
C
关于索引,下面描述错误的是()。得分/总分A.非聚集索引是逻辑上的连续B.对于一张表来说,聚集索引只有一个C.大多数情况下,主键索引是聚集索引D.对于一张表来说,非聚集索引只能有一个
D
使用模式能防止来自不同模式对象名称的冲突
对一张二维表而言,表中的行称为字段,表格中的列称为记录
Between…And的语法形式,是一定包含边界值的
所有能单独执行的检索语句,都能用来创建视图
聚集索引存储记录是物理上连续存在的
在SQL语句中,与XNOTBETWEEN20AND30等价的表达式是(X<=20OrX>=30)
建立数据库表时,将年龄字段值限制在12~40岁之间的这种约束属于实体完整性约束