我使用的数据库是SQL SERVER 2000,想实现的功能是:只保存最近2天的数据。请问这个SQL语句该怎么写?
我是这样写的,但提示有错误。
txtsql = "delete from tbvalue1 where  DateDiff(day,Format(Valuedate,'short date'),Date()) <>0 and DateDiff(day,Format(Valuedate,'short date'),Date()) <>1"请问该怎么写??