mysql format 格式化 返回值

早上發現一個奇怪問題,跟蹤一下,發現了以下問題,記錄一下: spring

Mysql 數據庫的format   sql

查看文檔: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類型,針對這樣的數據,他是會爆   spa

org.springframework.dao.TransientDataAccessResourceException
orm

這個異常的 ci

相關文章
相關標籤/搜索