织梦某栏目近7天发布文章的数量
Select count(id) as total From dede_archives where DATE_SUB(CURDATE(), INTERVAL 7 DAY) <= FROM_UNIXTIME(pubdate,'%Y-%m-%d') and typeid=171
织梦某栏目近30天发布文章的数量
Select count(id) as total From dede_archives where DATE_SUB(CURDATE(), INTERVAL 30 DAY) <= FROM_UNIXTIME(pubdate,'%Y-%m-%d') and typeid=171
如果本文对你有帮助,欢迎打赏本站