SQL FORMAT(X,D)函數
FORMAT(X,D)
FORMAT()函數是用來按以下格式格式化數字X:###,###,###。##以小數D截斷。下麵的例子演示了FORMAT()函數的使用和輸出:
SQL>SELECT FORMAT(423423234.65434453,2); +---------------------------------------------------------+ | FORMAT(423423234.65434453,2) | +---------------------------------------------------------+ | 423,423,234.65 | +---------------------------------------------------------+ 1 row in set (0.00 sec)