MySQL Forums
Forum List  »  Newbie

Reseting Auto Increment for Indexes?
Posted by: Matthias Karl
Date: May 28, 2022 12:47AM

I have a bunch of tables that have seen a lot of activity for a long time already . The indexes are bigint fields populated with auto increment in two tables. The auto increment value is close to a billion by now, the other at 500 million. Table 2 is linked to table 1 via the index field of table 1.

I am wondering what the best way would be to reset the index values of the two tables. If it was only one table, I could just copy the structure, make an INSERT FROM INTO new_table, but how will I be able to do that with table 2 and the link to table 1 when the index suddenly changes?

Options: ReplyQuote


Subject
Written By
Posted
Reseting Auto Increment for Indexes?
May 28, 2022 12:47AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.