Oracle 数字转为字符串 to_char()


格式:TO_CHAR(number,'format_model')

9 -->Represents a number

0 --> Forces a zero to be displayed

.  -->Prints a decimal point

, --> Prints a comma as a thousands indicator

 

select to_char(6000,'99,999.00') from dual;

6,000.00

select to_char(6000,'00,000.00') from dual;

06,000.00

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM