-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Out of range value for column 'id' at row 1 #186
Comments
DemoSQLConfig static 代码块中重写 SIMPLE_CALLBACK 的 newId 方法,return null 即可 |
非常感谢 |
@Xuxin19960702 你是怎么判断没有自增的?最上方两条也是连续的,再添加记录,最新的记录 id 也应该为之前最大 id + 1 |
确实是我魔怔了,昨晚后来我也发现这个问题了,就改当前自增id了,但数据库有点问题,手动insert都改不过来。今早重新改了下自增id,居然就好了。 非常感谢!麻烦了。 |
环境信息
问题描述
之前设计数据库没考虑id长度问题,现在导入apijson后,新增数据的时候报Out of range value for column 'id' at row 1,已知是id长度问题,因为换成bigint类型后就没问题, 但是之前设计的数据库都是int类型,如果要一个一个改工作量非常大,想问这种问题怎么解决?能不能让id自增长(id改成bigint后生成的id好像是时间戳?)?因为之前一直做前端的(需求只是简单的弄一个增删改查的功能,所以没后台),不知道怎么下手,求大佬帮忙
错误信息
The text was updated successfully, but these errors were encountered: