oracle to_char() fm

select to_char(.93, ‘FM09999D99’) from dual
>> “00000.93”

FM을 붙이면 좌측정렬. 안붙이면 우측정렬하여 앞에 공백 생김.
09999 >> 5자리 숫자. 앞에는 0으로 추고…
D.99 >> 소숫점 및 소숫점 이하 2자리 숫자.

그러하다.

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.