select * from table where time>='2002-09-01' and time<='2002-09-10'or select * from table where time between '2002-09-01' and '2002-09-10'

解决方案 »

  1.   

    select * from table where time>='2002-09-01' and time<='2002-09-10'
    这句话肯定是对的
    你的日期字段是什么类型的?
      

  2.   

    比如你要查'2002-1-1'到'2002-2-12'这段时间的数据,可以这样写:
    select * 
    from table 
    where datediff(dy,'你的时间字段','2002-1-1')<=0
      and datediff(dy,'你的时间字段','2002-2-12')>=0
      

  3.   

    select * from table where time between '2002-09-01' and '2002-09-10'
    这句话在access里为什莫不好使呀?
      

  4.   

    在access中应该这样的
    select * from table where time between #2002-09-01# and #2002-09-10#