一条例子: select count(point_id) as today_sum from point where datediff(d,point_date,getdate())=0 关键语句: datediff(d,point_date,getdate())=0
mssql中得到当天数据的语句
原文:http://www.cnblogs.com/niaowo/p/4008681.html