SQL數據庫按照 小時, 月,年排序

按小時排序:datepart(hour,d_time)spa      select datepart(hour,d_time)  as  dtime,n_amount       from 表     where n_server_id=XX      and d_time>='2012-09-13'      group by datepart(hour,d_time),n_amountser
相關文章
相關標籤/搜索