Comments - AUTO_INCREMENT

1 year, 7 months ago Les Schmidt

It may be implied but perhaps should be made more explicit: When an "INSERT INTO....ON DUPLICATE KEY UPDATE" query is used, AUTO_INCREMENT always updates, regardless of whether the record is actually INSERTed or just UPDATEd. This can lead to rapidly escalating index numbers if this approach is used in a long "autosave" web form.

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.
Back to Top