I have searched for this and many others talk about replace command but I don`t wanna do a misstake with that.
My case is: I have a Wordpress blog and a script insert content in the posts. Now I wanna delete this new content but to keep the old one.
Its something like "This is content of a post about me" its the old content, and now the script insert another line, and the value of the field looks like "This is content of a post about me <div class="spnsor"><a [...]</div>".
In this part I have a different link from a post to post. But is the same construction with the same div and class.
I have over 2000 posts so is to much to edit every post.
How can I fix this from Mysql?
Its ok this command?
UPDATE wp_posts SET post_content = REPLACE ( post_content, '<div class="spnsor">*</div>', '' )