I have participant table in mysql. For example the table data is like this
For example, there is a mistake. Ignit must be in 4th position. If I swap Donald to Ignit, it will become like this which is wrong :
So, I'm going to swap one by one
Ignit -> Harry, Ignit->Gerrard, Ignit->Funky, Ignit->Emma, Ignit->Donald so it will become :
1. Andy
2. Barry
3. Charlie
4. Ignit
5. Donald
6. Emma
7. Funky
8. Gerrard
9. Harry
10. John
The problem is, how can I swap if there are thousand of participants ? It's cumbersome to swap one by one and it takes long time.
Making changes to multiple records based on change of single record with SQL Doesn't answer my question. I want more efficient way (If there any).