Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

13
  • Key rollover value? Commented Aug 15, 2016 at 20:51
  • An unsigned integer has a max value of 4294967295 before adding 1 will roll it over to 0. Remember if you add a record then delete it, the counter is still increased. Make sure you use unsigned int for the field type otherwise the limit is half of that number. Commented Aug 15, 2016 at 20:53
  • Integer Overflow - en.wikipedia.org/wiki/Integer_overflow Commented Aug 15, 2016 at 20:54
  • 2
    If you add/remove lots of rows the auto increment counter will overflow eventually. Commented Aug 15, 2016 at 20:56
  • 1
    How do people handle rollover? What if there are records with a low ID that never get deleted, but you're starting to near the end where some IDs are at the upper end of 4294967295? Can a "re-indexing" be done? Commented Aug 15, 2016 at 20:57