时间:2021-07-01 10:21:17 帮助过:27人阅读
当字段类型为 unsigned 时,使用相关结果为负值时就会报错,报错如下:
BIGINT UNSIGNED value is out of range in ..
解决方法
使用 cast() 修改字段类型为 signed
select cast(quantity as signed) - cast(frozen_quantity as signed) from ...
本文出自 “技术蓝” 博客,请务必保留此出处http://bstdn.blog.51cto.com/8667020/1951064
Mysql Query error: BIGINT UNSIGNED value is out of range in..解决方法
标签:mysql range