統計數值計算常用

自己跑一跑就知道效果

select to_char(9876/10000) from dual
union all
select to_char(round(9876/10000,2)) from dual
union all
select to_char(round(9876/10000,2)) from dual
union all
select to_char(round(9876/10000,2),990.999) from dual
union all
select trim(to_char(round(9876/10000,2),990.999)) from dual
union all
select to_char(
                (round(9876/10000,2))*100,
       990.999)||'%'
from dual
union all
select trim(to_char(
                (round(9876/10000,2))*100,
       990.999)||'%')

from dual



arrow
arrow

    福州肯特 發表在 痞客邦 留言(0) 人氣()