首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

ORACLE数目字的处理

2012-07-15 
ORACLE数字的处理1.round功能:四舍五入函数如:select round(1.23456789,2) from dual?2.trunc功能:截取函

ORACLE数字的处理

1.round

功能:四舍五入函数

如:select round(1.23456789,2) from dual;

?

2.trunc

功能:截取函数

如:select trunc(1.23456789,2) from dual;

?

3.金额转换函数

select? to_char(round(10000 / 100.00, 2), 'FM9999999999999999.00') as amount from dual

热点排行