Oracle中将小数转换成字符丢零.截取小数.除数为零解决法

如下所示,前面少个0

SQL>select money from users where username ='LEI';

money

 

---------

.3256

解决方法:

SQL>select to_char(money ,'fm9999999990.00') from users where username ='LEI';

 

money

---------

0.3256

 

posted on 2016-09-04 23:07  张冲andy  阅读(1143)  评论(0编辑  收藏  举报

导航