码迷,mamicode.com
首页 > 其他好文 > 详细

【2019年8月】OCP 071认证考试最新版本的考试原题-第20题

时间:2019-10-30 14:04:23      阅读:114      评论:0      收藏:0      [点我收藏+]

标签:select   ati   rom   column   for   新版本   最新   number   from   

Choose two

The PRODUCT_INFORMATION table has a UNIT_PRICE column of data type NUMBER(8, 2).

Evaluate this SQL statement:

SELECT TO_CHAR(unit_price,‘$9,999‘) FROM Product_intormation;

Which two statements are true about the output?

A) A row whose UNIT_PRICE column contains the value 1023.99 will be displayed as $1,024.

B) A row whose UNIT_PRICE column contains the value 1023.99 will be displayed a5 $1,023.

C) A row whose UNIT_PRICE column contains the value 10235.99 will be displayed as $1,0236.

D) A row whose UNIT_PRICE column contains the value 10235.99 will be displayed as $1,023.

E) A row whose UNIT_PRICE column contains the value 10235.99 will be displayed as #####

Answer:AE

(解析:这道题以前出现过,Answer:A 有点出乎意外,居然四舍五入;位数不够 oracle 显示的处理方式就是以#号显示。)

【2019年8月】OCP 071认证考试最新版本的考试原题-第20题

标签:select   ati   rom   column   for   新版本   最新   number   from   

原文地址:https://www.cnblogs.com/cnblogs5359/p/11764250.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!