当前位置: 数据库>sqlserver
mssql中得到当天数据的语句
来源: 互联网 发布时间:2014-09-05
本文导语: 一条例子: select count(point_id) as today_sum from point where datediff(d,point_date,getdate())=0 关键语句: datediff(d,point_date,getdate())=0
一条例子:
select count(point_id) as today_sum from point where datediff(d,point_date,getdate())=0
关键语句:
datediff(d,point_date,getdate())=0
select count(point_id) as today_sum from point where datediff(d,point_date,getdate())=0
关键语句:
datediff(d,point_date,getdate())=0