千家信息网

$1,890.55格式的显示

发表于:2025-01-23 作者:千家信息网编辑
千家信息网最后更新 2025年01月23日,Connected to Oracle Database 11g Enterprise Edition Release 11.2.0.1.0Connected as shSQL> SELECT TO_
千家信息网最后更新 2025年01月23日$1,890.55格式的显示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>

0