mysql如何批量替换html特殊标签语法,下面web建站小编给大家详细介绍一下具体实现代码!
具体代码如下:
复制代码update wp_posts set post_content = replace(
post_content,
substring(
post_content,
locate('<p><a href=', post_content),
locate('</a></p>', post_content) + LENGTH('</a></p>') - locate('<p><a href=', post_content)
),
''
);
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
标签: html特殊标签, wordpress模板, 批量替换
上面是“mysql批量替换html特殊标签语法介绍(wordpress模板)”的全面内容,想了解更多关于 mysql 内容,请继续关注web建站教程。
当前网址:https://m.ipkd.cn/webs_3559.html
声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!