1.用getdate(),datepart()函数做出你的参考时间,如@temp_time='2001 08:30'
2.用datediff判断要判断的时间和参考时间的差别,如:datediff(mi,yourtime,temp_time) between 0 and 60

解决方案 »

  1.   

    错了!@temp_time='2001/7/19 08:30'
      

  2.   

    还不对!
    datediff(mi,yourtime,@temp_time) between 0 and 60
      

  3.   

    datepart(HH,yourtime)>8 and datepart(MI,yourtime)>30
      

  4.   

    select to_char(sysdate,'hh:mm') from dual 就行了!
      

  5.   

    上面各位兄弟没有排除不在同一天的情况,试一下我的方法
    select * from yourtable where arrivetime>convert(varchar(10),getdate(),20)+' 08:30'
      

  6.   

    select * from yourtable where (datepart(arrivetime,hh)*60+datepart(arrivetime,mi)) > (8*60+30)
      

  7.   

    select * from test where (datepart(hh,date)*60 + datepart(mi,date)) > (8*60+30)
      

  8.   

    小弟问一个简单的问题:
    在ACCESS库中要比较时间SQL语句如何写????? 
      

  9.   

    sky_blue(蓝天) 的方法真是牛