What is the biggest ID number that autoincrement can produce in mysql

后端 未结 2 1853
伪装坚强ぢ
伪装坚强ぢ 2020-12-12 21:28

I have an database that is rapidly filled with data we talk about 10-20k rows per day.

What is a limit of an ID with and autoincrement option? If ID is created as IN

2条回答
  •  轮回少年
    2020-12-12 22:32

    If you are worried about it growing out of bounds too quickly, I would set the PK as an UNSIGNED BIGINT. That gives you a max value of 18446744073709551615, which should be sufficient.

提交回复
热议问题