mysql 之 double( totalsize, decimal)

 

长度为3,insert的 值是 12  的时候,error:Data truncation: Out of range value for column 'dose' at row 1

 如 double(3, 2),小数点的左右两边的位数加起来不能超过 3 位

插入的时候会转化为 12  -> 12.0  已经超过了3位!

相关文章:

  • 2021-08-12
  • 2021-12-24
  • 2021-09-29
  • 2021-09-29
  • 2021-09-28
  • 2022-12-23
  • 2021-10-26
猜你喜欢
  • 2022-12-23
  • 2021-09-29
  • 2021-11-23
  • 2022-01-13
  • 2021-08-25
相关资源
相似解决方案