i would like to do a find and replace inside an entire database not just a table.
How can i alter the script below to work?
update [table_name] set
why?
because there is a great chance that your database contains serialized data (especially wp_options table), so using just "replace" might break data.
Use recommended serialization: https://puvox.software/tools/wordpress-migrator