I think this should work:
UPDATE table
SET field = REPLACE(field, 'string', 'anothervalue')
WHERE field LIKE '%string%';
More Related Contents:
- MySQL, update multiple tables with one query
- UPDATE multiple rows with different values in one query in MySQL
- How to find similar results and sort by similarity?
- Multiple Updates in MySQL
- mysql update column with value from another table
- SQL order string as number
- update multiple rows using limit in mysql?
- Can MySQL replace multiple characters?
- MySQL/SQL: Update with correlated subquery from the updated table itself
- What are differences between INSERT and UPDATE in MySQL?
- MySQL UPDATE syntax with multiple tables using WHERE clause
- The best way to remove value from SET field?
- Strip last two characters of a column in MySQL
- Update MySQL with if condition
- Update multiple rows with multiple ‘where’ clauses for each individual row
- MySQL update statement to store ranking positions
- INSERT INTO SELECT statement with more columns which is not in another table
- ‘IF’ in ‘SELECT’ statement – choose output value based on column values
- Why does MySQL allow “group by” queries WITHOUT aggregate functions?
- Cumulative sum over a set of rows in mysql
- Add Auto-Increment ID to existing table?
- Using group by on two fields and count in SQL
- Can MySQL convert a stored UTC time to local timezone?
- Whats the fastest way to lookup big tables for points within radius MySQL (latitude longitude)
- How to transpose rows to columns with large amount of the data in BigQuery/SQL?
- Is there a way to get the row number in Mysql like the rownum in oracle [duplicate]
- How to get a list of months between two dates in mysql
- My SQL Dynamic query execute and get ouput into a variable in stored procedure
- Postgres LEFT JOIN with WHERE condition
- How to check if field is null or empty in MySQL?