EDIT:
The table is GIGANTIC! I could just make the backup, and try it locally, if it went fine i could replicate the same on the server, but as i said, the database has almost 500mb, it is indeed quite big. Thanks to those who helped me 🙂
I’d like to change the values from the column “inside_position” where the cell values is 0
update TABLE_NAME SET inside_position=100 where inside_position=0;
I can’t mess this up, so I’ll not set up the trial and error method for this one.
Hope you can help me.
|Product_ID||Product_Code||Inside_position|
| 403 || EH009KP || 0 |
| 503 || GHSJSKD || 0 |
| 603 || KANSDAS || 1 |
| 703 || KJNKANS || 0 |
| 803 || KJHEERF || 0 |
| 903 || NBVDHQE || 5 |
| 910 || PKMRQEM || 0 |
| 980 || 990KMNJ || 0 |
-------------------------------------------
This table describes my problem, I want to change the ones with 0 to 100.
The code you posted is fine?
If you’re worried about it not working, why not just duplicate the data into a dummy table and then run the query on those, that way you know for sure it will work 🙂