SQL查询enewsmemberadd表内IP字段等于61.9.111.212的序,并统计大于1的数量。
select count(lastip),lastip from enewsmemberadd where lastip = ‘61.9.111.212’ group by lastip having count(lastip)>1
其中的lastip替换成您需要统计查询的字段
enewsmemberadd为您表名
lastip = ‘61.9.111.212’为附加查询字段,没有也可以删除where lastip = ‘61.9.111.212’
版权声明:本文为winkexin原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。