update dede_archives set senddate= 1412092800 where arcrank=-1;
另外:dedecms怎样批量修改文章发布时间 Dedecms如何批量修改文章的发布时间?相信很多朋友有这样的疑问,比如在网上下回一源码,或者买了一个站,里面文章日期都很早的,那么如何把时间更新到指定日期?下面我来分享下吧!
update dede_archives set pubdate= 1308240000 where id>=1 and id<=10; update dede_archives set senddate= 1335542400 where id>=1 and id<=10; 解释一下上面两行代码,功能就是把ID号从1到10的文章发布日期由2011年6月17日修改到2012年4月28日。其中“pubdate= 1308240000 ”和“senddate= 1335542400” 中的 数字为“Unix时间戳(Unix timestamp) ” 这个把日期转换成时间戳的地址,大家到http://tool.chinaz.com/Tools/unixtime.aspx去转换。
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有