select *from table where time between 3.12 and  4.12

解决方案 »

  1.   

    select *from table where time between #12-3-2004# and #12-4-2004#
      

  2.   

    select * from table where time between ("1998-05-05" - INTERVAL 1 MONH) and "1998-05-05"
      

  3.   

    少写个字符
    select * from table where time between ("1998-05-05" - INTERVAL 1 MONTH) and "1998-05-05"
      

  4.   

    我想取当前日期,是不是改为
    select * from table where time between (date() - 30) and date()这样行吗??
      

  5.   

    select * from table where (to_days(now())-to_days(time))<30
      

  6.   

    select * frome tabalename
    where itime>"yy-3-12"
    and itime<"yy-4-12"
      

  7.   

    SELECT * 
    FROM table
    WHERE time 
    BETWEEN (curdate( ) - INTERVAL 1 MONTH ) AND curdate( ) 
      

  8.   

    select * from table where (to_days(now())-to_days(字段))<30