怎样实现对前七天的浏览量进行统计?

wdclub 2003-11-25 02:35:12
怎样实现对前七天的浏览量进行统计?比如说11月25日,则统计18-24日的浏览量!
...全文
70 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
wdclub 2003-11-25
  • 打赏
  • 举报
回复
浏览量只有一个字段,不是每天的浏览量都单独统计。
fangpeng2003 2003-11-25
  • 打赏
  • 举报
回复
select count(liulan) from table where liulan_date >= getdate()-7 and liulan_date<=getdate()-1
fangpeng2003 2003-11-25
  • 打赏
  • 举报
回复
select count(liulan) from table where liulan_date >= "2003-11-18" and liulan_date<="2003-11-24"

28,407

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧