转换一下总可以吧
把 你的年月日形式转换成 10-MAR-02 格式的string
然后在比较
$from_date='02-MAR-02';
$end_date='03-MAR-02';
例 where DATETIME >$from_date and DATETIME<$end_date 
应该可以吧!

解决方案 »

  1.   

    转换一下总可以吧
    把 你的年月日形式转换成 10-MAR-02 格式的string
    然后在比较
    $from_date='02-MAR-02';
    $end_date='03-MAR-02';
    例 where DATETIME >$from_date and DATETIME<$end_date 
    应该可以吧!
      

  2.   

    select * from web where sid = '$num' and DATETIME>to_Date('2002-02-12') and DATETIME<to_Date('2002-03-01')
      

  3.   

    可以直接用time()函数,把日期转换成绝对秒,直接比较