I have a primary key with auto increment column in a table. Last week the number was 48. Today for some reason it’s generating from the beginning started at 1. What could be the issue? Is this an issue with the new year change? Please let me know. Thanks for any ideas.
Share
auto_increments are not tied to dates in any way, unless you’ve done something to do so. They’re just a number field that increments each time a new record is inserted. The only way to reset an auto increment is to drop/readd the field, or do an
alter table yourtable set auto_increment=new_value.