select * from CompanyPact  where To_Days(PactDate)>To_Days('00-05-03');

解决方案 »

  1.   

    呵呵
    难道
    2002-01-01不大于00年05月03日吗我们说Date1大于Date2是因为Date1在Date2后
      

  2.   

    $sql="select * from  CompanyPact where to_days(PactDate) > (to_days('2002-05-03' )
      

  3.   

    select MONTH(PactDate),DAYOFMONTH(PactDate) from CompanyPact;
    我想到一种方法就是用 MONTH  和DAYOFMONTH 得到日期的月数个日数
    然后再判断
      

  4.   

    select * from CompanyPact where MONTH(PactDate)>=10 and DAYOFMONTH(PactDate)>=11;嘿,还是我自己解决了:)