索引可以被定义为唯一的或非唯一的,唯一索引确保列中所保存的值在表中出现()。
A. 一次
B. 两次
C. 多次
D. 一次或多次
查看答案
1.在数据库标准语言SQL中,关于NULL值叙述正确选项是()。
A. NULL 表示空格
B. NULL表示0
C. NULL既可以表示0,也可以表示是空格
D. NULL表示空值
3.在select语句中利用()关键字能够去除结果表中重复的记录。
A. top
B. into
C. distinct
D. add
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子句