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#

 posted on 2011-09-19 14:06  纳米程序员  阅读(474)  评论(0编辑  收藏  举报