相关考题
-
单项选择题
利用子查询语句查询出某班级学生年龄大于平均年龄的,以下SQL语句正确的是()。
A.select *from 表名where age in (select avg(age)from 表名);
B.select *from 表名where age>(select count(age)from 表名);
C.select *from 表名where age>(select avg(age)from 表名);
D.select *from 表名where avg(age)>(select avg(age)from 表名); -
单项选择题
如果需要查询出两表之间的共同数据应该用什么连接方法?()
A.外连接
B.内连接
C.左连接
D.右连接 -
单项选择题
当数据量过大时,查询出前三行信息,下列哪个是正确的?()
A.select *from students where gender=1limit 1,3;
B.select *from students where gender=1limit 0,3;
C.select *from students where gender=1limit 1,4;
D.select *from students having gender=1limit 0,3;
