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

ORDER BY子句在Oracle中默认对字符排序时是大小写敏感的,NULL值会被考虑,排序在最后。可以使用未在SELECT列表中出现的列进行排序,且默认按升序排列。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

一、原题
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选项不正确,不管是什么数据类型,默认都是升序,从小到大。
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值