I want to delete the searched value (not row) if a row contains the searched value. For example, if I want to remove banana, it should only remove banana from the rows which contain banana.
Tried this,
DELETE FROM users where eat like '%banana%'
However, it removes the rows. So how can I remove only search value from the rows ?
OR
You can try this -
This would replace only
banana
fromeat
column where it is present.Update
Loop through the data and replace those values. This might help -
Try this query :