gpt4 book ai didi

MYSQL,批量更新woocommerce单店页面简短描述中的新文本链接

转载 作者:行者123 更新时间:2023-11-29 19:20:45 24 4
gpt4 key购买 nike

screenshot of the link

您好,我已经在 woocommerce 商店中发布了数百种产品,并在简短描述(产品摘录)中提供了链接。

现在想用新链接更新该链接。

哪个 SQL 是正确的?

UPDATE wp_posts SET post_content = REPLACE (post_content,‘href="http://xxx/about">Ordering</a>?‘,
‘href="http://xxxx/ordering guid">Ordering</a>?‘);

UPDATE wp_posts SET post_excerpt = REPLACE (post_excerpt,‘href="http://xxx/about">Ordering</a>?‘,
‘href="http://xxx/ordering guid">Ordering</a>?‘);

或者还有什么?

最佳答案

您可以使用 WP 数据库中的搜索和替换任何内容。也许下面的脚本可以帮助你。

这是链接Database Search and Replace Script in PHP

Note : This is script is only for Wordpress Database.

关于MYSQL,批量更新woocommerce单店页面简短描述中的新文本链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42466410/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com