查询出学生表中所有姓‘李’的学生信息,sql语句哪项是正确的()。
A.select * from student where name='李';
B.select * from student where name like '_李';
C.select * from student where name like '李_';
D.select * from student where name like '李%';
A.select * from student where name='李';
B.select * from student where name like '_李';
C.select * from student where name like '李_';
D.select * from student where name like '李%';
第1题
A.select * from 学生表 order by 入校总分 asc
B.select * from 学生表 order by 入校总分 desc
C.select top 3 * from 学生表 order by 入校总分 asc
D.select top 3 * from 学生表 order by 入校总分 desc
第2题
A.嵌入到另一个查询语句之中的查询语句
B.选取单表中字段子集的查询语句
C.选取多表中字段子集的查询语句
D.返回单表中数据子集的查询语言
第3题
现有学生表,课程表和成绩表,三表中的字段如下:
student表:id,student_name
course表:id,course_name
score表:student_id,course_id,score
前提:每个学生都会参加多门课程的考试,每门课程的成绩在score表中都是一条数据
现若要查询出 平均分在60分以上的学生id和学生姓名以及平均分,以下哪个sql语句是正确的? ()
A.select student_id,student_name,avg(score) av from student s join score sc on s.id=sc.student_id;
B.select student_id,student_name,avg(score) av from student s join score sc on s.id=sc.student_id where av>60;
C.select student_id,student_name,avg(score) av from student s join score sc on s.id=sc.student_id where av>60 group by student_id;
D.select student_id,student_name,avg(score) av from student s join score sc on s.id=sc.student_id group by student_id having av>60;
第4题
A.name like ‘李_’
B.name like ‘李%’
C.name like ‘李[]’
D.name like ‘李[^]’
第6题
A.A.应用简单子查询的SQL语句的执行效率比采用SQL变量的实现方案要低
B.B.带子查询的查询执行顺序是,先执行父查询,再执行子查询
C.C.表连接一般都可以用子查询替换,但有的子查询不能用表连接替换
D.D.如果一个子查询语句一次返回二个字段的值,那么父查询的where子句中应该使用NOT EXISTS关键字
第7题
A.ALTERTABLE学生DROP年龄
B.ALTERTABLE学生ADD年龄int
C.ALTERTABLE学生DROP年龄int
D.ALTERTABLE学生MODIFYCOLUMN年龄int
第9题
A.INSERTINTO学生表select*FROM学生表2
B.INSERTINTO学生表VALUES(‘1001’,‘张杰’)
C.select*from学生表
D.INSERTINTO学生表select*FROM学生表
第10题
A.删除所有学生的数据
B.删除所有性别不为男的学生数据
C.删除所有性别为男的学生数据
D.删除部分学生数据
为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!