Just managed to install WordPress on SQL 2008 R2. How to find and replace strings (URLs) in dbo.wp_post
s table, post_content
column?
Looking for a way to replace http://localhost/
with http://somedomain.com
Any suggestions much appreciated.
Just managed to install WordPress on SQL 2008 R2. How to find and replace strings (URLs) in dbo.wp_post
s table, post_content
column?
Looking for a way to replace http://localhost/
with http://somedomain.com
Any suggestions much appreciated.
使用REPLACE
:
UPDATE dbo.wp_post
SET post_content =
REPLACE(post_content, 'http://localhost/', 'http://somedomain.com');
WHERE ... --predicatehere