View Single Post
Old 09-16-2021, 08:18 PM  
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,053
Quote:
Originally Posted by natkejs View Post
This, and you can mimic replace behavior with a where statement.

Code:
UPDATE table SET pets = 'zombie' WHERE pets = 'cat';
Or if you're replacing multiple values

Code:
UPDATE table SET pets = 'zombie' WHERE pets IN ('cat','dog','mouse');
But this is only for columns holding single term values. If you are replacing words inside strings then you need to use the REPLACE statement.
Yeah but that is changing the data in the table and he said he did not want to do that.

.
__________________
All cookies cleared!
sarettah is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote