MySQL Forums
Forum List  »  PHP

Re: am I using massive resource for sending mySQL qurey through PHP?
Posted by: Yousef Al-Hadhrami
Date: December 19, 2014 05:09PM

the description in short simple English? ok
I am trying to use one mySQL query to change a group of rows

live example
changing
--------------------------------------
| id | name | position |
--------------------------------------
| 1 | a | 5 |
| 2 | b | 3 |
| 3 | c | 1 |
| 4 | d | 2 |
| 5 | e | 4 |
--------------------------------------

to

--------------------------------------
| id | name | position |
--------------------------------------
| 3 | c | 1 |
| 4 | d | 2 |
| 2 | b | 3 |
| 5 | e | 4 |
| 1 | a | 5 |
--------------------------------------

sending only 1 mySQL query through PHP for all of that

Options: ReplyQuote


Subject
Written By
Posted
Re: am I using massive resource for sending mySQL qurey through PHP?
December 19, 2014 05:09PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.