Skip to content

Instantly share code, notes, and snippets.

@mayukojpn
Created March 30, 2015 10:15
Show Gist options
  • Save mayukojpn/e5264acec838e5f63f37 to your computer and use it in GitHub Desktop.
Save mayukojpn/e5264acec838e5f63f37 to your computer and use it in GitHub Desktop.
WordPress の投稿のパーマリンクを一括置換
UPDATE `wp_posts` SET `post_name`=REPLACE (`post_name`,"_","-") WHERE `post_type` = 'post';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment