Which statement is true regarding the default behavior of the ORDER BY clause?

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. 

Answer: A

答案解析:

参考:http://blog.csdn.net/rlhua/article/details/12837221

A对,在字符排序中,是区分大小写的。

B错,对于升序排序,空值显示在最后,对于降序排序,则显示在最前面。即NULL是被考虑的

C错,可以指定不在select列中的字段来排序。

D错,不管是否小数,都是按照数值的大小来升序或降序排列。

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 7,490评论 0 10
  • **2014真题Directions:Read the following text. Choose the be...
    又是夜半惊坐起阅读 10,110评论 0 23
  • 初二的时候,我身边的人都开始读小说,我渐渐地融入他们,我也开始读起了小说,给我印象深刻的一部小说它的名字就叫做——...
    豆言瑶语阅读 492评论 0 0
  • 碎花裙离地 我醉眼迷离 你说先生买朵玫瑰让她带进梦里 今夜正值七夕 灯红酒绿 身处异地,我一人孤身在这里 今日我刚...
    针灸龙哥阅读 396评论 12 5
  • 最近今天在亲戚家玩,只带了两支中性笔和一本速写本,只能偶尔涂几笔。 水彩和水墨,下周继续。 因为速写不打草稿,能看...
    文朴阅读 3,966评论 43 42