帝国cms标题、内容、关键词批量替换sql语句

时间:2024年04月04日

/

来源:网络

/

编辑:佚名

帝国cms标题、内容、关键词常用的批量替换sql语句
可以替换网站上出现的敏感词
例子如下:
/* phome_ecms_news表 */
update phome_ecms_news SET title=REPLACE(title,'官网','网站');
update phome_ecms_news SET title=REPLACE(title,'轰炸','轰轰');
update phome_ecms_news SET title=REPLACE(title,'破解','开心');

update phome_ecms_news SET smalltext=REPLACE(smalltext,'官网','网站');
update phome_ecms_news SET smalltext=REPLACE(smalltext,'轰炸','轰轰');
update phome_ecms_news SET smalltext=REPLACE(smalltext,'破解','开心');

update phome_ecms_news SET keyboard=REPLACE(keyboard,'官网','网站');
update phome_ecms_news SET keyboard=REPLACE(keyboard,'轰炸','轰轰');
update phome_ecms_news SET keyboard=REPLACE(keyboard,'破解','开心');

/*phome_ecms_news_data_1表 */
update phome_ecms_news_data_1 SET newstext=REPLACE(newstext,'官网','网站');
update phome_ecms_news_data_1 SET newstext=REPLACE(newstext,'轰炸','轰轰');
update phome_ecms_news_data_1 SET newstext=REPLACE(newstext,'破解','开心');

update phome_ecms_news_data_1 SET infotags=REPLACE(infotags,'官网','网站');
update phome_ecms_news_data_1 SET infotags=REPLACE(infotags,'轰炸','轰轰');
update phome_ecms_news_data_1 SET infotags=REPLACE(infotags,'破解','开心');

/*phome_ecms_news_check表 */
update phome_ecms_news_check SET title=REPLACE(title,'官网','网站');
update phome_ecms_news_check SET title=REPLACE(title,'轰炸','轰轰');
update phome_ecms_news_check SET title=REPLACE(title,'破解','开心');

update phome_ecms_news_check SET smalltext=REPLACE(smalltext,'官网','网站');
update phome_ecms_news_check SET smalltext=REPLACE(smalltext,'轰炸','轰轰');
update phome_ecms_news_check SET smalltext=REPLACE(smalltext,'破解','开心');

update phome_ecms_news_check SET keyboard=REPLACE(keyboard,'官网','网站');
update phome_ecms_news_check SET keyboard=REPLACE(keyboard,'轰炸','轰轰');
update phome_ecms_news_check SET keyboard=REPLACE(keyboard,'破解','开心');
/*phome_ecms_news_check_data表 */
update phome_ecms_news_check_data SET newstext=REPLACE(newstext,'官网','网站');
update phome_ecms_news_check_data SET newstext=REPLACE(newstext,'轰炸','轰轰');
update phome_ecms_news_check_data SET newstext=REPLACE(newstext,'破解','开心');
update phome_ecms_news_check_data SET infotags=REPLACE(infotags,'官网','网站');
update phome_ecms_news_check_data SET infotags=REPLACE(infotags,'轰炸','轰轰');
update phome_ecms_news_check_data SET infotags=REPLACE(infotags,'破解','开心');
/* phome_enewstags */
update  phome_enewstags SET tagname=REPLACE(tagname,'官网','网站');
update  phome_enewstags SET tagname=REPLACE(tagname,'轰炸','轰轰');
update  phome_enewstags SET tagname=REPLACE(tagname,'破解','开心');
/* phome_dp_tagsadd表 */
update  phome_dp_tagsadd SET bname=REPLACE(bname,'官网','网站');
update  phome_dp_tagsadd SET bname=REPLACE(bname,'轰炸','轰轰');
update  phome_dp_tagsadd SET bname=REPLACE(bname,'破解','开心');
 
猜你需要

豫ICP备2021026617号-1  豫公网安备:41172602000185   Copyright © 2021-2028 www.78moban.com/ All Rights Reserved

本站作品均来自互联网,转载目的在于传递更多信息,并不代表本站赞同其观点和对其真实性负责。如有侵犯您的版权,请联系 1565229909#qq.com(把#改成@),我们将立即处理。