大家早上好,
我有一个看起来像这样的表,使用 format() 我可以将 (,) 放在我的 begbalance、存款和取款表上,这些表都是小数。
| begbalance | deposit | withdraw |
SELECT format(begbalance,2)begbalance,
format(deposit,2)deposit,
format(withdraw,2)withdraw,
begbalance+deposit+withdraw AS balance
FROM savingstable;
我的问题是我不能使用 format() 平衡,我想把逗号 (,) 放在平衡中。有什么建议吗?提前致谢
最佳答案
format(begbalance+deposit+withdraw, 2) as balance
关于mysql - 在结果 MySQL 中格式化 (,),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19106107/