| 标题 | mysql format 格式化 返回值 |
| 内容 | 早上发现一个奇怪问题,跟踪一下,发现了如下问题,记录一下: 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 这个异常的 |
| 随便看 |
|
在线学习网考试资料包含高考、自考、专升本考试、人事考试、公务员考试、大学生村官考试、特岗教师招聘考试、事业单位招聘考试、企业人才招聘、银行招聘、教师招聘、农村信用社招聘、各类资格证书考试等各类考试资料。