![]() |
#2
师妃暄2008-10-06 08:47
|
id. project ,endtime(时间字段)
。。。 。。。 2008-9-20
我现在想查询当前时间跟字段里面的时间相差3天所有记录?
我用select * from aa where (getdate()-endtime=3)为什么会没有记录显示?
还有我用select * from aa where endtime betweent getdate() and getdate()-3 也是没有记录显示?
我的语法是不是哪里出错?
有没有其他的sql语句。

