ocp 11g认证考试题:1Z0-051-075题
来源:优技教育
ocp 11g认证考试题:1Z0-051-075题,完整题库请点击这里联系老师咨询了解
75. The following data exists in the PRODUCTS table:
PROD_ID PROD_LIST_PRICE
123456 152525.99
You issue the following query:
SQL> SELECT RPAD(( ROUND(prod_list_price)), 10,'*')
FROM products
WHERE prod_id = 123456;
What would be the outcome?
A. 152526 ****
B. **152525.99
C. 152525** **
D. an error message
Answer: A
答案解析:
Round( ) 函数
传回一个数值,该数值是按照指定的小数位元数进行四舍五入运算的结果
语法
ROUND( number, decimal_places )
number : 需四舍五入处理的数值
decimal_places : 四舍五入 , 小数取几位 ( 预设为 0 )
RPAD:返回一个表达式,右边使用一个字符表达式填充到n 个字符的长度。
精华阅读