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位!

原文地址:https://www.cnblogs.com/hahajava/p/12126433.html