OCP-1Z0-051 第68题 ORDER BY的默认值

来源:互联网 发布:英语词汇量测试软件 编辑:程序博客网 时间:2024/06/04 18:28
一、原题
Which statement is true regarding the default behavior of the ORDER BY clause?
A. In a character sort, the values are case- sensitive.
B. NULL values are not considered at all by the sort operation.
C. Only those columns that are specified in the SELECT list can be used in the ORDER BY clause.
D. Numeric values are displayed from the maximum to the minimum value if they have decimal positions.

答案:A
二、题目翻译
关于ORDER BY子句的默认值,哪句话是正确的?
A. 对一个字符列排序,值是大小写敏感的。
B. NULL值不考虑在排序操作里。
C. 只有在SELECT语句中列出的列才能用于ORDER BY子句中。
D. 如果有十进制数,数字值是从大到小显示的。
三、题目解析
A选项正确,字符排序,大小写敏感。
B选项不正确,null值也是要排序的,默认是升序,null排在最后。
C选项不正确,没有在select语句中出现的列,只要是表中存在的列,都可以出现在ORDER BY子句中。
D选项不正确,不管是什么数据类型,默认都是升序,从小到大。
0 0
原创粉丝点击