Skip to content

Out of range value for column 'id' at row 1 #186

Description

@wengeqiua

环境信息

  • 系统: Windows 10
  • JDK: 1.8.0_41
  • 数据库: MySQL 8.0.15
  • APIJSON: APIJSON-Demo工程

问题描述

之前设计数据库没考虑id长度问题,现在导入apijson后,新增数据的时候报Out of range value for column 'id' at row 1,已知是id长度问题,因为换成bigint类型后就没问题, 但是之前设计的数据库都是int类型,如果要一个一个改工作量非常大,想问这种问题怎么解决?能不能让id自增长(id改成bigint后生成的id好像是时间戳?)?因为之前一直做前端的(需求只是简单的弄一个增删改查的功能,所以没后台),不知道怎么下手,求大佬帮忙

错误信息

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions