注册 登录
编程论坛 SQL Server论坛

时间的筛选

nixy 发布于 2007-05-17 08:00, 1046 次点击
SQL语句如判断何筛选表里最新一天的时间数据

[此贴子已经被作者于2007-5-17 8:03:21编辑过]


4 回复
#2
Kendy1234562007-05-17 09:14
where CreateDate between convert(varchar,dateadd(day,-1,getdate()),101) and convert(varchar,getdate(),101)

#3
觉雨2007-05-17 09:26
恩~?
#4
xzh198420502007-05-21 16:49

是不是最新一天的用-1,如果最近7天的用-7啊

#5
论坛元老2008-04-02 15:40
支持,顶....ding..
1