2017-06-17 36 views
0

我有以下的WordPress数据库的WP-后表数据和需要更新HTTP条目到HTTPS。我试过下面的查询,但没有影响到它。更新WP-后表列串部分

UPDATE CwwNResoposts 
SET post_content = (Replace (post_content, 'href="https:', 'href="http:')) 

列条目:

This is an example page. It's different from a blog post because it will stay in one place and will show up in your site navigation (in most themes). Most people start with an About page that introduces them to potential site visitors. It might say something like this: 

<blockquote>Hi there! I'm a bike messenger by day, aspiring actor by night, and this is my website. I live in Los Angeles, have a great dog named Jack, and I like pi&#241;a coladas. (And gettin' caught in the rain.)</blockquote> 

...or something like this: 

<blockquote>The XYZ Doohickey Company was founded in 1971, and has been providing quality doohickeys to the public ever since. Located in Gotham City, XYZ employs over 2,000 people and does all kinds of awesome things for the Gotham community.</blockquote> 

As a new WordPress user, you should go to <a href="http://veezphone.com/wp-admin/">your dashboard</a> to delete this page and create new pages for your content. Have fun! 

回答

0

您需要交换的替代查询,

UPDATE CwwNResoposts 
SET post_content = (Replace (post_content, 'href="http:', 'href="https:')); 

检查替换查询格式为:REPLACE(str, find_string, replace_with)