0

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'
rd3n
  • 4,440
  • 1
  • 33
  • 45

0 Answers0