mssql中得到当天数据的语句
(编辑:jimmy 日期: 2024/11/25 浏览:3 次 )
一条例子:
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
下一篇:通用分页存储过程,源码共享,大家共同完善