Chinaunix首页 | 论坛 | 博客
  • 博客访问: 595325
  • 博文数量: 487
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 4916
  • 用 户 组: 普通用户
  • 注册时间: 2018-07-05 13:59
个人简介

ocp考试资料群:569933648 验证码:ocp OCP 12c 19c考试题库解析与资料群:钉钉群号:35277291

文章分类

全部博文(487)

文章存档

2023年(37)

2021年(151)

2020年(37)

2019年(222)

2018年(38)

我的朋友

分类: Oracle

2019-10-30 13:05:01

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

阅读(1033) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~