转载自:https://blog.csdn.net/xpy_java/article/details/72674060
select to_char(a,'99D90'),
to_char(a,'90D90'),
to_char(a,'FM90D99'),
rtrim(to_char(a,'FM90D99'),to_char(0,'D'))
from(
select 50 a from dual
union all select 50.57 from dual
union all select 5.57 from dual
union all select 0.35 from dual
union all select 0.4 from dual
)
通过Oracle里面FM90D99来实现个位数是0的展示。