I don’t know the table structure, so I can’t provide a targeted solution, but one method is stored procedures, but one disadvantage is that it affects the performance of mysql. When the number of operations is not particularly large, the impact is not big, but when the operations are very frequent, There may be an impact.
I don’t know the table structure, so I can’t provide a targeted solution, but one method is stored procedures, but one disadvantage is that it affects the performance of mysql. When the number of operations is not particularly large, the impact is not big, but when the operations are very frequent, There may be an impact.
Look for common conditions and where conditions to perform batch up operations
Deleted and re-inserted (escape...
At least provide your table structure, otherwise how will others see it?
Solved, just use a loop