繁体   English   中英

SQL 2008上的Wordpress-查找和替换字符串

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM