帝国cms数据库模板批量替换模板
-
来源:本站原创 浏览:3476次 时间:2018-07-14
帝国cms数据库模板批量替换模板
帝国的模板都是在数据库,如果需要批量修改的只能通过数据库操作,有点麻烦
这里把相关模板替换的关键词贴出来,方便大家修改!
进入数据库
update www_92game_net_enewsclasstemp set temptext=REPLACE (temptext,'新文阁','看美女');
update www_92game_net_enewsclasstemp_2 set temptext=REPLACE (temptext,'新文阁','看美女');
update www_92game_net_enewslisttemp set temptext=REPLACE (temptext,'新文阁','看美女');
update www_92game_net_enewsclasstemp_2 set temptext=REPLACE (temptext,'新文阁','看美女');
update www_92game_net_enewspltemp set temptext=REPLACE (temptext,'新文阁','看美女');
update www_92game_net_enewspltemp_2 set temptext=REPLACE (temptext,'新文阁','看美女');
update www_92game_net_enewsclasstemp set temptext=REPLACE (temptext,'阁主说','美女说');
update www_92game_net_enewsclasstemp_2 set temptext=REPLACE (temptext,'阁主说','美女说');
update www_92game_net_enewslisttemp set temptext=REPLACE (temptext,'阁主说','美女说');
update www_92game_net_enewslisttemp_2 set temptext=REPLACE (temptext,'阁主说','美女说');
update www_92game_net_enewstempvar set varvalue=REPLACE (varvalue,'新文阁','看美女');
update www_92game_net_enewstempvar_2 set varvalue=REPLACE (varvalue,'新文阁','看美女');
mysql 修改字段长度
alter table news modify column title varchar(130);
alter table 表名 modify column 字段名 类型;
如:news 表里的title 字段 原来长度是 100个字符,现长度要改成130个字符
alter table news modify column title varchar(130);
ok 了!
alter table www_92game_net_ecms_news modify column titlepic char(254);
alter table www_92game_net_ecms_news modify column titlepic varchar(254);
update www_92game_net_ecms_news set titlepic=REPLACE (titlepic,'http://inews.gtimg.com/newsapp_match/','http://hao.42824.com/img.php?url=http://inews.gtimg.com/newsapp_match/');
update www_92game_net_ecms_news_data_1 set newstext=REPLACE (newstext,'http://inews.gtimg.com/newsapp_match/','http://hao.42824.com/img.php?url=http://inews.gtimg.com/newsapp_match/');
帝国cms filename 字段 为空导致生成内容失败解决 方法
帝国cms filename 字段 为空导致生成内容失败怎么解决 文章字段 采集的数据 在发布的时候没有看到 有几百个文章的filename 里面都没有内容,生成不了 请问如果用mysql语气去处理这个filename 这个可以直接调用ID的 |
update www_92game_net_ecms_news set filename=id;