MySQL integer unsigned arithmetic problems?
问题 Does MySQL (5.0.45) like to do strange internal typecasts with unsigned maths? I am storing integers unsigned but when selecting basic arithmetic I get outrageous numbers: mysql> create table tt ( a integer unsigned , b integer unsigned , c float ); Query OK, 0 rows affected (0.41 sec) mysql> insert into tt values (215731,216774,1.58085); Query OK, 1 row affected (0.00 sec) mysql> select a,b,c from tt; +--------+--------+---------+ | a | b | c | +--------+--------+---------+ | 215731 | 216774