[英]Wordpress on SQL 2008 - find and replace string
刚刚设法在SQL 2008 R2上安装了WordPress。 如何在dbo.wp_post
的表post_content
列中查找和替换字符串 (URL)?
寻找一种将http://localhost/
替换为http://somedomain.com
任何建议,不胜感激。
使用REPLACE
:
UPDATE dbo.wp_post
SET post_content =
REPLACE(post_content, 'http://localhost/', 'http://somedomain.com');
WHERE ... --predicatehere
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.