2017-06-17 37 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)