我是笨办法~你先去时间tostring以后再用substr取~呵呵~我抛砖~应该有函数直接搞定的~我也等着看

解决方案 »

  1.   

    select * from 表 where to_char(时间列,'hh24:mi:ss')<'18:00:00 and 时间列>to_date('2004-11-02','yyyy-mm-dd')
      

  2.   

    上句少了个单引号select * from 表 where to_char(时间列,'hh24:mi:ss')<'18:00:00' and 时间列>to_date('2004-11-02','yyyy-mm-dd')
      

  3.   

    select * from tb where 
      dat>to_date('20041102','yyyymmdd') and
      to_number(to_char(dat,'hh24'))<18;
      

  4.   

    ORARichard(没钱的日子好难过啊)可行