I need to replace parts of text using the following query:
UPDATE table_name SET field = REPLACE(field, 'old', 'new')
The problem is that the query must not replace "old.jpg" or "oldcar" and so on, but ONLY "old".
Can we use something like below?
WHERE field LIKE 'old'