I have a table in phpMyadmin which is called Circuits with a column MCBs_id and i want to change the id 22 with id 19, the id 23 with id 20 and the id 24 with id 20.
How can i Run a script to change all at once with SQL query?
I have a table in phpMyadmin which is called Circuits with a column MCBs_id and i want to change the id 22 with id 19, the id 23 with id 20 and the id 24 with id 20.
How can i Run a script to change all at once with SQL query?
2
Answers
then you need to do this :
This are the queries to update de value of field MCBs_id:
Consider that all the rows which meet the condition (WHERE) will be update in each of the queries.