select * from [table] where addtime between "#dateadd("d",date(),7)#" and "#date()#"
错在如处?
...全文
702打赏收藏
dateadd的用法!select * from [table] where addtime......
我在写查询语句时遇到一个问题,要求为: 查询出近7天内的记录.比喻今天是2005-3-21日.我要查询的是从2005-3-15到2005-3-21日内的记录 我的写法如下: select * from [table] where addtime between "#dateadd("d",date(),7)#" and "#date()#" 错在如处?