Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Most likely you are using INSERT ON DUPLICATE KEY UPDATE or a similar mechanism that tries to insert records and stumbles. It is he who winds up AUTO_INCREMENT.
To solve it, you need to use a transaction, in which the existence of a duplicate is first checked, and then manipulation is performed.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question