OCP11g+12c考试资料群:1015267481 验证码:ocp

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

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

posted @   cnblogs_5359  阅读(316)  评论(0编辑  收藏  举报
(评论功能已被禁用)
编辑推荐:
· AI与.NET技术实操系列:使用Catalyst进行自然语言处理
· 分享一个我遇到过的“量子力学”级别的BUG。
· Linux系列:如何调试 malloc 的底层源码
· AI与.NET技术实操系列:基于图像分类模型对图像进行分类
· go语言实现终端里的倒计时
阅读排行:
· 几个技巧,教你去除文章的 AI 味!
· 系统高可用的 10 条军规
· 关于普通程序员该如何参与AI学习的三个建议以及自己的实践
· 对象命名为何需要避免'-er'和'-or'后缀
· AI与.NET技术实操系列(八):使用Catalyst进行自然语言处理
点击右上角即可分享
微信分享提示