【2019年8月】OCP 071認證考試最新版本的考試原題-第20題

Choose twooracle

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

Evaluate this SQL statement:this

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

Which two statements are true about the output?orm

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

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

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

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

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

Answer:AE

(解析:這道題之前出現過,Answer:A 有點出乎意外,竟然四捨五入;位數不夠 oracle 顯示的處理方式就是以#號顯示。)

相關文章
相關標籤/搜索