帝国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;
版权与免责声明:
凡注明稿件来源的内容均为转载稿或由网友用户注册发布,本网转载出于传递更多信息的目的;如转载稿涉及版权问题,请作者联系我们,同时对于用户评论等信息,本网并不意味着赞同其观点或证实其内容的真实性;

![英雄棋士团(预下载)?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/shouyoupic/yingxiongqishituanyuxiazai.jpg)
![美食小当家?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/shouyoupic/meishixiaodangjia.png)
![2047?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/shouyoupic/2047.jpg)
![荣誉指挥官(预下载)?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/shouyoupic/rongyuzhihuiguanyuxiazai.png)
![繁荣美食市场物语?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/shouyoupic/fanrongmeishishichangwuyu.jpg)
![夸克浏览器 v4.2.1.138 好用的手机浏览器?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/appimg/202007/kuakezuolanqi.jpg)
![移动办公软件 OfficeSuite Premium v10.18.28716 内购解锁版?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/appimg/202007/yidongbangongruanjian.jpg)
![乐秀视频编辑器 VideoShow v8.8.4 内购解锁版?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/appimg/202007/lexiushipinbianjiqi.png)
![X 浏览器 v3.3.9 一款小巧的安卓浏览器?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/appimg/202007/x.jpg)
![安卓密码管理软件 Enpass v6.4.5.368 内购解锁版?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/appimg/202007/anzhuomimaguanliruanjian.jpg)
![差分复制同步 FastCopy-M v3.6.3.51 绿色便携版?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/softimg/FastCopy3.png)
![多标签页拓展 Clover v3.5.2 Build 19809 精简绿色版?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/softimg/Clover.png)
![文件重命名 Advanced Renamer v3.85 Lite 绿色便携版?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/softimg/Advanced_Renamer.png)
![网络防火监控 GlassWire Elite v2.1.166 绿色便携版?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/softimg/GlassWire.png)
![影音播放器 Daum Potplayer v1.7.20538 美化便携版?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/softimg/PotPlayer.png)