我想查数据库中,整点的数据,where 后面怎么对时间模糊查询啊???

解决方案 »

  1.   


    --假设rq是你表里面的时间字段
    select * from yourtable where to_char(rq,'hh24:mi:ss')='00:00:00'
      

  2.   

    --假设rq是你表里面的时间字段
    select * from yourtable where to_char(rq,'yyyy-mm-dd hh24:mi:ss') like '%:00:00'
      

  3.   

    1楼正解。先将date 用to_char()转化为字符串,然后like就可以处理了
      

  4.   

    select * from tb where to_char(rq,'yyyy-mm-dd hh24:mi:ss') like '%...%'