How to fill in the “holes” in auto-increment fields?

后端 未结 7 915
时光说笑
时光说笑 2020-11-27 06:12

I\'ve read some posts about this but none cover this issue.

I guess its not possible, but I\'ll ask anyway.

I have a table with more than 50.000 registers. I

7条回答
  •  鱼传尺愫
    2020-11-27 07:00

    What is the reason you need this functionality? Your db should be fine with the gaps, and if you're approaching the max size of your key, just make it unsigned or change the field type.

提交回复
热议问题