jsp 统计每日访问人数如何写?
来源:百度知道 编辑:UC知道 时间:2024/05/19 01:05:51
jsp 统计每日访问人数如何写?
如果同一用户重复登录也计算的话可以这么做:
建个表,字段:id,visit_time
//x,y分别为一个时间点
SQL:select count(*) from table where visit_time between x and y;
UC知道是一部内容开放、自由的互动网络百科全书
客观、专业、权威的知识性百科全书
来源:百度知道 编辑:UC知道 时间:2024/05/19 01:05:51
如果同一用户重复登录也计算的话可以这么做:
建个表,字段:id,visit_time
//x,y分别为一个时间点
SQL:select count(*) from table where visit_time between x and y;