sqlserver查询统计当前月份的数据

SELECT * FROM t_order  WHERE datediff(month,createTime,getdate())=0 ORDER BY createTime

 

你可能感兴趣的