Oracle round函数
2019-01-07 14:33
113 查看
Oracle Round 函数的意思是四舍五入的方法,即传回一个数值,该数值是按照指定的小数位元数进行四舍五入运算的结果
SELECT ROUND( number, [ decimal_places ] ) FROM DUAL
参数 number 是指需要处理的数值,是必须填写的值。
参数 decimal_places 是指在进行四舍五入运算时 , 小数的应取的位数,该参数可以不填,不填的时候,系统默认小数位数取0。
函数应用举例:
①“select round(988.211, 0) from dual;”得到结果为:988
②“select round(988.211, 1) from dual;”得到结果为:988.2
③“select round(988.211, 2) from dual;” 得到结果为:988.21
相关文章推荐
- oracle之round函数、over()函数
- Oracle round函数是什么意思?怎么运用?
- Oracle中Round函数(四舍五入)的使用
- Oracle round函数 保留小数位数
- Oracle中的Round函数
- oracle之round函数使用
- oracle round函数的使用方法
- Oracle round函数是什么意思?怎么运用?
- ORACLE中的ROUND函数
- Oracle round函数
- oracle中round函数的使用
- Oracle 的 Round函数
- oracle round函数的使用方法 .
- Oracle round函数是什么意思?怎么运用?
- Oracle--Round函数
- 关于 Oracle 的数据导入导出及 Sql Loader (sqlldr) 的用法
- Oracle 9i 启动服务小结
- Oracle得到M到N条记录的写法:
- Oracle PL/SQL语言基础3
- RHEL5.1下安装Oracle10.2.0.1 错误问题2