美好的一天请有人可以帮助我货币格式的###,###,###。##我所尝试的一切我似乎陷入了困境 - 我的代码如下:协助货币格式
function CF_TOTAL_COSTFormula return Number is total_cost number; begin select SUM(share_amount) into total_cost from reservation_name rn, reservation_daily_element_name rden where rn.resv_name_id = rden.resv_name_id and rn.resv_name_id = :resv_name_id and trunc(rden.reservation_date) between trunc(rn.begin_date) and trunc(rn.end_date - 1); return total_cost; exception when others then return 0; end;
上面的代码踢出了一个数字,如1234,我希望它是格式1,234.00 – DSmith