前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >【2019年8月】OCP 071认证考试最新版本的考试原题-第20题

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

原创
作者头像
用户5892232
修改2019-10-30 17:22:05
4490
修改2019-10-30 17:22:05
举报

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 显示的处理方式就是以#号显示。)

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档