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
You can do it, even wkololo_4ever showed you how, but sometimes it's better to understand the reasons for this behavior. If you make data imports sequential INSERT execution, then such things are extremely necessary to wrap in a transaction, and in case of an error, roll back the transaction and deal with the error.
Actually not how. If I'm not mistaken, this is protection against duplicated recording, under load.
Therefore, it is better to beat all this already in the logic of the program.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question