select ipLayerProtocolCode,count(*)
from tb
group by ipLayerProtocolCode

解决方案 »

  1.   

    就是一天内可能有不同的IP进行访问,现在统计有相同IP的个数。
      

  2.   

    select firstseensrcip,count(*)
    from netflowb
    group by firstseensrcip这才对
      

  3.   

    什么是“有相同IP的个数‘ ?建议举例说明。比如
    ip1
    ip2
    ip3
    ip4
    ip5
    ip6这个中没有任何相同IP,则返回 0 ?那么下面的返回几? 1 还是 2?
    ip1
    ip2
    ip3
    ip4
    ip5
    ip3而下面的又返回几?
    ip1
    ip2
    ip3
    ip3
    ip2
    ip3