mysql format 格式化 返回值
生活随笔
收集整理的這篇文章主要介紹了
mysql format 格式化 返回值
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
2019獨角獸企業重金招聘Python工程師標準>>>
早上發現一個奇怪問題,跟蹤一下,發現了如下問題,記錄一下:
Mysql 數據庫的format??
查看文檔:Formats the number X to a format like'#,###,###.##', rounded to D decimal places, and returns the result as a string. If D is0, the result has no decimal point or fractional part.整數部分超過三位的時候以逗號分割,并且返回的結果是string類型的。
也就是說,如果我這邊轉型的數據比較大的話,如果是 5000.000 這個數字的話,在轉型后返回的是string類型,針對這樣的數據,他是會爆??
org.springframework.dao.TransientDataAccessResourceException
這個異常的
轉載于:https://my.oschina.net/alexgaoyh/blog/384164
總結
以上是生活随笔為你收集整理的mysql format 格式化 返回值的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 如何安装Linux操作系统
- 下一篇: 查看mysql状态常用命令