码迷,mamicode.com
首页 > 其他好文 > 详细

【2019年8月版】OCP 071认证考试原题-第40题

时间:2019-12-16 16:18:05      阅读:115      评论:0      收藏:0      [点我收藏+]

标签:statement   select   visio   div   use   ber   nts   取整   equal   

Choose two.

Which two statements are true about single row functions?

A) CONCAT : can be used to combine any number of values

B) MOD : returns the quotient of a division operation

C) CEIL : can be used for positive and negative numbers

D) FLOOR : returns the smallest integer greater than or equal to a specified number

E) TRUNC : can be used with NUMBER and DATE values

Answer::CE

(解析:concat 函数只能连接两个字符串或者两个列的值。

ceil 函数向上取整数。

floor 函数向下取整。)

SQL> select ceil(-500.1) from dual;

CEIL(-500.1)


-500

SQL> select ceil(-500.99999) from dual;

CEIL(-500.99999)


-500

SQL> select floor(-500.1) from dual;

FLOOR(-500.1)


-501

【2019年8月版】OCP 071认证考试原题-第40题

标签:statement   select   visio   div   use   ber   nts   取整   equal   

原文地址:https://blog.51cto.com/13854012/2458921

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!