create table t1(a int unsigned,b int unsigned);

insert into t1 select 1,2;

select 1-2 from t1;
Error Code: 1690. BIGINT UNSIGNED value is out of range in '(study.t1.a - study.t1.b)'

set sql_mode='NO_UNSIGNED_SUBTRACTION';

select a-b from t1;
-1

相关文章:

  • 2021-09-02
  • 2021-03-31
  • 2022-12-23
  • 2021-07-21
  • 2021-07-03
  • 2021-10-27
  • 2022-12-23
  • 2021-09-18
猜你喜欢
  • 2022-12-23
  • 2022-01-08
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案