我的费用列为数字(6,2)在我的表格中。我有数据0.46美元作为费用。当我以decode(to_char(fee, '999,999,999.99'), .00, '0.00', to_char(fee, '99,999,999.99')) numeric_amt
提取显示时,它将以.46显示但我需要显示为0.46是否可以得到它。
答案 0 :(得分:2)
只需使用to_char(fee, '99,999,990.00')
参考number Format models(Oracle文档)
答案 1 :(得分:0)
试试这个: 从表中选择to_char(费用,'999,999,990.99')作为numeric_amt;