10 rows in setHAVING 过滤分组HAVING 非常类似于 WHERE。事实上&xff0c;目前为止所学过的所有类型的 WHERE子句都可以用 HAVING 来替代。唯一的差别是&xff0c;WHERE 过滤行&xff0c;而 HAVING 过滤分组。HAVING 和 WHERE...
如果直接 count ip 就会出现重复值&xff0c;在 sql 层面进行去重统计。count(distinct remote_addr)?select??count(distinct remote_addr)as uv??from dw_web?l?og_detail t where t.datestr&61;34;20181101&34...