MySQL Forums
Forum List  »  MyISAM

Re: index auto_increment
Posted by: Rick James
Date: February 10, 2014 03:48PM

> But if I delete the fields I would like the next record inserted reuse index not used.

I suggest that is not good accounting practice. A dead receipt should be voided and kept.

If this is not an "accounting" task, then, well, live with it. AUTO_INCREMENT values follow certain rules; those rules may not be exactly what you want. Furthermore, you will find differences between MyISAM and InnoDB, and different actions after a server crash. So, do not depend on anything other than generated ids will be distinct.

Options: ReplyQuote


Subject
Views
Written By
Posted
3325
February 07, 2014 11:45AM
Re: index auto_increment
1734
February 10, 2014 03:48PM
1736
February 11, 2014 07:37AM


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.