ASP 数据库去除重复后统计问题
SELECTcount(Record_ip)astongji,manfromRecordwhereyear(date)=year(now)andmonth(date)=m...
SELECT count(Record_ip) as tongji,man from Record where
year(date) = year(now) and month(date) = month(now) group by man
man:是要统计的姓名
Record:是数据库表单名
Record_ip:是IP地址
上述是统计一个月内全部用户的IP
请问如何去掉重复的IP后再统计? 展开
year(date) = year(now) and month(date) = month(now) group by man
man:是要统计的姓名
Record:是数据库表单名
Record_ip:是IP地址
上述是统计一个月内全部用户的IP
请问如何去掉重复的IP后再统计? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询