分享好友 教程首页 教程搜索 频道列表

DESTOON批量修改浏览次数值SQL语句

2017-03-20 17:1717661
+关注28
核心提示:后台SQL命令吧:(后台-我的面板-数据维护-执行SQL)(默认命令为sql为默认前缀,...

 批量增加浏览量(适用于新站)

后台SQL命令吧:(后台-我的面板-数据维护-执行SQL)
(默认命令为sql为默认前缀,您如自定义了 ,请修改 dextoon_ 为你自己的前缀)
默认加100, 不要加太多,一天加点即可,心不要黑
以下为sql语句内容:(前提,需要修改根目录config.inc.php里的 $CFG['executesql']  为1 ,默认为0 是禁止的,执行完成后,可改回0)


方式1、(为当前模块的所有信息增加)

update destoon_company set hits=hits+100;
update destoon_sell_5 set hits=hits+100;
update destoon_buy_6 set hits=hits+100;
update destoon_article_21 set hits=hits+100;


方式2、(只为浏览次数小于800的信息增加)

update destoon_company set hits=hits+100 where hits<800;
update destoon_sell_5 set hits=hits+100 where hits<800;
update destoon_buy_6 set hits=hits+100 where hits<800;
update destoon_article_21 set hits=hits+100 where hits<800;


方式3、(只为单个会员或者单条信息增加),注意公司有两种方式,一种是获取会员id,一种是获取会员用户名

update destoon_company set hits=hits+100 where userid=2847;
update destoon_company set hits=hits+100 where username='xiaohei';

update destoon_sell_5 set hits=hits+100 where itemid=418;
update destoon_buy_6 set hits=hits+100 where  itemid=418;
update destoon_article_21 set hits=hits+100 where itemid=418;


依次类推  数据库表名 ,自己看 数据库表名
后台-我的面板-数据维护
本文标签: #浏览量 #点击次数 #浏览次数
免责声明:凡注明来源本网的所有作品,均为本网合法拥有版权或有权使用的作品,欢迎转载,注明出处。非本网作品均来自互联网,转载目的在于传递更多信息,并不代表本网赞同其观点和对其真实性负责。
生成海报
相关评论1
您可能在找更多
下一篇
我来说两句
1