Skip to content

Instantly share code, notes, and snippets.

@theory-of-soul
Created December 29, 2015 09:47
Show Gist options
  • Save theory-of-soul/aef98bae731562d107ce to your computer and use it in GitHub Desktop.
Save theory-of-soul/aef98bae731562d107ce to your computer and use it in GitHub Desktop.
замена подстроки в строке SQL
UPDATE таблица SET поле = REPLACE(поле, 'что_меняем', 'на_что_меняем')
@theory-of-soul
Copy link
Author

UPDATE wp_posts SET post_content = REPLACE(post_content, 'pdf" target="_blank"', 'pdf" target="_blank" rel="nofollow"')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment