MSSQL分年月日时段统计

    刚有用到,顺手搜了一下,写得贼复杂 - -。记个简单的。

    group by datepart([hour],查询字段)

posted @ 2017-11-24 08:46  何处觅流光  阅读(354)  评论(0)    收藏  举报