I have a table items and an item_name column inside of it, and I would like to replace certain text that column has, for example table items contains the following:
Steel Sword
Brozne Sword
Gold Sword
Then I would like to replace only the Sword string to Axe for all items at once. I’ve tried to use the MySQL’s REPLACE() function, but it doesn’t work for some reason…
If it’s possible, how can I replace that?
Can you tell why
UPDATE items SET item_name = REPLACE(item_name, 'Sword', 'Axe');is not working? What’s the result?