一条例子:
select
count(point_id) as today_sum from point wheredatediff(d,point_date,getdate())=0
关键语句:
datediff(d,point_date,getdate())=0
原文:http://www.cnblogs.com/niaowo/p/4008681.html
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!