题目内容

4.分别统计男女生人数正确的SELECT命令为()。

A. select count(*) from student where sex='男' and sex='女'
B. select count(*) from student where sex='男' or sex='女'
C. select count(*) from student order by sex
D. select count(*) from student group by sex

查看答案
更多问题

5.关于查询语句中 ORDER BY 子句使用正确的是()。

A. 如果未指定排序字段,则默认按递增排序
B. 数据表的字段都可用于排序
C. 如果在SELECT子句使用DISTINCT关键字,则排序字段必须出现在查询结果中
D. 连接查询不允许使用ORDER BY子句

6.Select语句中()表示任意的任意个字符。

A. ?
B. *
C. !
D. _

以下()不是WHERE子句中可用的逻辑运算符。

AND
B. OR
C. NOT
D. &

having<条件>只能与()配合使用,表示将分组后将满足条件的记录输出。

A. group by
B. where
C. and
D. as

答案查题题库