update [table_name] set [field_name] =
replace([field_name],’[string_to_find]‘,’[string_to_replace]‘);
if you are moving your website to another domain its very usefull to replace hard coded urls with one click
example UPDATE wp_posts SET post_content = REPLACE(post_content,
'oldwebsite.com', 'newwebsite.com');

