Connected to Oracle Database 11g Enterprise Edition Release 11.2.0.1.0
Connected as sh
SQL> SELECT TO_CHAR(1890.55,'$99,999.99')
2 FROM DUAL;
TO_CHAR(1890.55,'$99,999.99')
-----------------------------
$1,890.55
SQL>
SQL> SELECT TO_CHAR(1890.55,'$99G999D00')
2 FROM DUAL;
TO_CHAR(1890.55,'$99G999D00')
-----------------------------
$1,890.55
SQL>
SQL> SELECT TO_CHAR(1890.55,'$99G999D99')
2 FROM DUAL;
TO_CHAR(1890.55,'$99G999D99')
-----------------------------
$1,890.55
SQL>
SQL> SELECT TO_CHAR(1890.55,'$0,000.00')
2 FROM DUAL;
TO_CHAR(1890.55,'$0,000.00')
----------------------------
$1,890.55
SQL>
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。