1、日期转时间戮,HTML文件名,目录名更改
update cms_ecms_jdba set newstime = UNIX_TIMESTAMP(submitTime),titleurl = CONCAT(‘/jdba/‘,FROM_UNIXTIME(newstime,‘%Y-%m-%d‘),‘/‘,id,‘.html‘),newspath = FROM_UNIXTIME(newstime,‘%Y-%m-%d‘),filename = id
update cms_ecms_jddj set newstime = UNIX_TIMESTAMP(submitTime),titleurl = CONCAT(‘/jddj/‘,FROM_UNIXTIME(newstime,‘%Y-%m-%d‘),‘/‘,id,‘.html‘),newspath = FROM_UNIXTIME(newstime,‘%Y-%m-%d‘),filename = id
2、栏目统计更新,分页时直接读class的字段值,而不是count具体表
update kfqzjz_enewsclass set allinfos = 所有信息数,infos = 已审信息数 where classid = @classid
原文:http://www.cnblogs.com/blackice/p/5060057.html