I've got a table in my database with id's and I'm tryning to replace them with a new id's. Example:
| id |
------
| 1 |
| 1 |
| 1 |
| 14 |
| 14 |
| 6 |
| 6 |
| 6 |
I want to replace all 1 with 25, 14 with 18, 6 with 15 etc. But when i run:
UPDATE your_table
SET your_field = REPLACE(your_field, '1', '25')
It changes all 1 to 25 and also 14 to 254. How to do this right?