62,025
社区成员
发帖
与我相关
我的任务
分享
between convert(varchar(10),getdate()-1,120)+' 17:00:00' and GETDATE()
select * From hz_dd
where
addtime>=trunc(sysdate-1)+17/24 --昨天17点 不行减2 或3 试试
and addtime<= trunc(Sysdate) --今天
order by addtime desc