Now there is a scene, there is such a registration method to execute the query query did not have a user data to insert inside, but now the same time, there are two requests as well as a moment will perform two times this registration method, which leads to the first query is not user followed by the second is no user will perform two insert the last database so there will be two such user, how to solve this problem, consult
CodePudding user response:
Insert before modifying
CodePudding user response:
No matter how you concurrent processing data of only one does not exist at the same time two that directly under the simple and crude way is to change insert statement to If the exits (query) The begin Insert end