UPDATE wpi3_table
SET post_content = REPLACE(post_content, 'ContentToReplace', 'ReplacementContent')
WHERE post_content LIKE '%ContentToReplace%'
UPDATE wpi3_table
SET post_content = REPLACE(post_content, 'ContentToReplace', 'ReplacementContent')
WHERE post_content LIKE '%ContentToReplace%'
Author: Wojciech Borowicz
I hope this post will help you to do what you need.
In case you want some assistance click here to get in touch