sql2005中sql语句为
DELETE FROM table WHERE ([date] BETWEEN '2011 - 9 - 19 0 : 00 : 00 ' AND '2011 - 9 - 20 0 : 00 : 00')
词语法是正确的,发现再access中没有影响相关行数,解决方法在日期前后加上#,语法为:
delete from table where date between #2011-9-19 0:00:00# and #2011-9-20 0:00:00#