I am trying to replace a string like "example.com" with "newdomain.com" in a MySQL table called "wp_options" with a column name "option_value".
I have seen a lot of other questions about replacement but the problem is that they are all using the REPLACE function, which damages the structure of my table because it removes the row (if matches) and inserts a new one(1), which makes the primary key and unique id disappears (for example, this is causing me to lose my theme configuration).
Is there a way to replace such string using the INSERT function? or the UPDATE?
REPLACE()function. They are using theREPLACEstatement. The two are quite different.