Always show decimal places in SQL?

前端 未结 5 1852
无人及你
无人及你 2020-12-19 00:43

I\'m working on a query which returns numeric values (currency). Some of the values are whole numbers and are being displayed as 3, 5, 2 etc whilst other numbers are coming

5条回答
  •  时光取名叫无心
    2020-12-19 01:11

    TO_CHAR(pAmount, '9,999,999.99');
    

    http://www.techonthenet.com/oracle/functions/to_char.php

    http://www.ss64.com/orasyntax/to_char.html

提交回复
热议问题