Out of range value for column '字段名' at row 1 异常

本文探讨了在MySQL中遇到的OutOfRangeValueForColumn异常原因及解决方案,主要涉及字段长度不足和数据类型不匹配的问题,提供了调整字段长度和类型的方法。

1、记录一下 Out of range value for column ‘字段名’ at row 1 异常

在mysql 添加数据或更新字段数据时,报出 标题异常,
1、字段长度不够 ,这种情况添加字段长度就可以了
2、类型不对,因为在mysql中不同类型的数据类型,存储的字节位数也是不一样的,这样的话就需要更改字段数据类型,其实跟比如使用Mybatis 操作mysql,传参的数据类型也有关系,表中定义的字段为group_id 为int,但是传参为Long 就会出现这个问题,为了解决这个问题,可以修改字段类型为bigint 或者穿的参数类型为integer。对于mysql 中不同的数据类型 可以查看这里,或者网上搜索

🚀 分播机数据同步服务已启动... 🔍 开始检查分播机 Line1 (192.168.110.56)... ✅ 分播机 Line1 (192.168.110.56) 网络通畅 ✅ 分播机 Line1 的数据库文件正常: Y:\sorting.db [TRUNCATE] 表 AI_AppOperationLogs 删除了 0 条 creationtime >= '2025-09-18 06:36:32' 的记录,最小ID=None ✅ 成功清理表 AI_AppOperationLogs 最近3小时数据 📥 从 AppOperationLogs 读取到 5300 条数据 [ERROR] 同步表 AppOperationLogs 时发生异常: 1264 (22003): Out of range value for column 'TaskId' at row 1 ⚠️ 同步表 AppOperationLogs 失败 [TRUNCATE] 表 AI_AppReportRecords 删除了 0 条 creationtime >= '2025-09-18 06:36:35' 的记录,最小ID=None ✅ 成功清理表 AI_AppReportRecords 最近3小时数据 📥 从 AppReportRecords 读取到 309 条数据 [ERROR] 同步表 AppReportRecords 时发生异常: 1264 (22003): Out of range value for column 'ObjId' at row 1 ⚠️ 同步表 AppReportRecords 失败 [TRUNCATE] 表 AI_AppSortingTaskBoxes 删除了 0 条 creationtime >= '2025-09-18 06:36:36' 的记录,最小ID=None ✅ 成功清理表 AI_AppSortingTaskBoxes 最近3小时数据 📥 从 AppSortingTaskBoxes 读取到 54232 条数据 [ERROR] 同步表 AppSortingTaskBoxes 时发生异常: 1264 (22003): Out of range value for column 'TaskId' at row 1 ⚠️ 同步表 AppSortingTaskBoxes 失败 [TRUNCATE] 表 AI_AppSortingTaskImages 删除了 0 条 creationtime >= '2025-09-18 06:36:45' 的记录,最小ID=None ✅ 成功清理表 AI_AppSortingTaskImages 最近3小时数据 📥 从 AppSortingTaskImages 读取到 157921 条数据 [ERROR] 同步表 AppSortingTaskImages 时发生异常: 1264 (22003): Out of range value for column 'TaskId' at row 1 ⚠️ 同步表 AppSortingTaskImages 失败 [TRUNCATE] 表 AI_AppSortingTaskItems 删除了 0 条 creationtime >= '2025-09-18 06:37:13' 的记录,最小ID=None ✅ 成功清理表 AI_AppSortingTaskItems 最近3小时数据 📥 从 AppSortingTaskItems 读取到 2815 条数据 [ERROR] 同步表 AppSortingTaskItems 时发生异常: 1264 (22003): Out of range value for column 'OutStockOrderId' at row 1 ⚠️ 同步表 AppSortingTaskItems 失败 [TRUNCATE] 表 AI_AppSortingTasks 删除了 0 条 creationtime >= '2025-09-18 06:37:14' 的记录,最小ID=None ✅ 成功清理表 AI_AppSortingTasks 最近3小时数据 📥 从 AppSortingTasks 读取到 312 条数据 [ERROR] 同步表 AppSortingTasks 时发生异常: 1264 (22003): Out of range value for column 'EquipmentId' at row 1 ⚠️ 同步表 AppSortingTasks 失败 [TRUNCATE] 表 AI_AppSortingTaskSkus 删除了 0 条 creationtime >= '2025-09-18 06:37:15' 的记录,最小ID=None ✅ 成功清理表 AI_AppSortingTaskSkus 最近3小时数据 📥 从 AppSortingTaskSkus 读取到 65618 条数据 [ERROR] 同步表 AppSortingTaskSkus 时发生异常: 1264 (22003): Out of range value for column 'BatchNo' at row 1 ⚠️ 同步表 AppSortingTaskSkus 失败 🔴 分播机 Line1 同步失败 🔍 开始检查分播机 Line9 (192.168.110.60)... ✅ 分播机 Line9 (192.168.110.60) 网络通畅 ✅ 分播机 Line9 的数据库文件正常: Z:\sorting.db [TRUNCATE] 表 AI_AppOperationLogs 删除了 0 条 creationtime >= '2025-09-18 06:37:29' 的记录,最小ID=None ✅ 成功清理表 AI_AppOperationLogs 最近3小时数据 📥 从 AppOperationLogs 读取到 3886 条数据 [ERROR] 同步表 AppOperationLogs 时发生异常: 1264 (22003): Out of range value for column 'TaskId' at row 1 ⚠️ 同步表 AppOperationLogs 失败 [TRUNCATE] 表 AI_AppReportRecords 删除了 0 条 creationtime >= '2025-09-18 06:37:31' 的记录,最小ID=None ✅ 成功清理表 AI_AppReportRecords 最近3小时数据 📥 从 AppReportRecords 读取到 258 条数据 [ERROR] 同步表 AppReportRecords 时发生异常: 1264 (22003): Out of range value for column 'ObjId' at row 1 ⚠️ 同步表 AppReportRecords 失败 [TRUNCATE] 表 AI_AppSortingTaskBoxes 删除了 0 条 creationtime >= '2025-09-18 06:37:32' 的记录,最小ID=None ✅ 成功清理表 AI_AppSortingTaskBoxes 最近3小时数据 📥 从 AppSortingTaskBoxes 读取到 48928 条数据 [ERROR] 同步表 AppSortingTaskBoxes 时发生异常: 1264 (22003): Out of range value for column 'TaskId' at row 1 ⚠️ 同步表 AppSortingTaskBoxes 失败 [TRUNCATE] 表 AI_AppSortingTaskImages 删除了 0 条 creationtime >= '2025-09-18 06:37:39' 的记录,最小ID=None ✅ 成功清理表 AI_AppSortingTaskImages 最近3小时数据 📥 从 AppSortingTaskImages 读取到 134633 条数据 [ERROR] 同步表 AppSortingTaskImages 时发生异常: 1264 (22003): Out of range value for column 'TaskId' at row 1 ⚠️ 同步表 AppSortingTaskImages 失败 [TRUNCATE] 表 AI_AppSortingTaskItems 删除了 0 条 creationtime >= '2025-09-18 06:38:04' 的记录,最小ID=None ✅ 成功清理表 AI_AppSortingTaskItems 最近3小时数据 📥 从 AppSortingTaskItems 读取到 2406 条数据 [ERROR] 同步表 AppSortingTaskItems 时发生异常: 1264 (22003): Out of range value for column 'OutStockOrderId' at row 1 ⚠️ 同步表 AppSortingTaskItems 失败 [TRUNCATE] 表 AI_AppSortingTasks 删除了 0 条 creationtime >= '2025-09-18 06:38:05' 的记录,最小ID=None ✅ 成功清理表 AI_AppSortingTasks 最近3小时数据 📥 从 AppSortingTasks 读取到 263 条数据 [ERROR] 同步表 AppSortingTasks 时发生异常: 1264 (22003): Out of range value for column 'EquipmentId' at row 1 ⚠️ 同步表 AppSortingTasks 失败 [TRUNCATE] 表 AI_AppSortingTaskSkus 删除了 0 条 creationtime >= '2025-09-18 06:38:06' 的记录,最小ID=None ✅ 成功清理表 AI_AppSortingTaskSkus 最近3小时数据 📥 从 AppSortingTaskSkus 读取到 57534 条数据 [ERROR] 同步表 AppSortingTaskSkus 时发生异常: 1264 (22003): Out of range value for column 'BatchNo' at row 1 ⚠️ 同步表 AppSortingTaskSkus 失败 🔴 分播机 Line9 同步失败 🔚 本轮同步完成,部分成功。10秒后进入下一轮...
09-19
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值