Int具有最大值范围:
INT 4 -2147483648 2147483647
0 4294967295 (unsigned )
因此,由于溢出,您将获得最大值。使用bigint代替,它有8个字节,您会没事的。
http://dev.mysql.com/doc/refman/5.0/en/numeric-types.html#integer- types
BIGINT 8 -9223372036854775808 9223372036854775807
0 18446744073709551615