Time字段以小时分组统计 select datepart(hour,time) hour,count(1) count from table where Similarity<75 group by datepart(hour,time) order by count desc From:https://www.cnblogs.com/xuejianxiyang/p/11202931.html 5分钟,半个小时,任意间隔分组分组 开发中遇到过问题就是对时间以半个小时分钟分组,如统计08:00-…