标签:style io cti size sql table rom on
相关操作:
1、 create table `table` ( a int unsigned, b int unsigned)engine=innodb;
2、 insert into `table` select 1,2;
3、 select * from table\G
a: 1
b: 2
4、select a-b from table;
ERROR 1690 (22003): BIGINT UNSIGNED value is out of range in ......
解决办法:
一、修改字段,把unsigned去掉
二、SET sql_mode=‘NO_UNSIGNED_SUBTRACTION‘;
标签:style io cti size sql table rom on
原文地址:http://my.oschina.net/hytomz/blog/298746