|
ddd
- UPDATE pre_portal_article_content SET content=REPLACE(content,'</section>','');
复制代码- 用正则表达式 在pre_portal_article_content表的 content字段中查找 <section style="*!important;"> 其中*是通配符, url 是变量. 将这样的代码 删除
复制代码- UPDATE pre_portal_article_content
- SET content = REGEXP_REPLACE(content, '<section style=".*?!important;">', '')
- WHERE content REGEXP '<section style=".*?!important;">';
复制代码
dd
|
|