当前位置:Gxlcms > 数据库问题 > Oracle中将小数转换成字符丢零.截取小数.除数为零解决法

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

时间:2021-07-01 10:21:17 帮助过:2人阅读

如下所示,前面少个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

 

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

标签:

人气教程排行