does exists some MYSQL query for FIND and REPLACE wp_posts AND IGNORE all other wordpress and buddypress posts (buddypress-docs) and also custom post type = portfolio ? I want to find and replace only wordpress blog content and I don't want to touch other posts. I use following MYSQL query:
UPDATE wp_posts SET post_content = REPLACE (post_content,'Item to replace here','Replacement text here');