select count(*) from tablename where create_time<to_date('2009-09-16 14:00:00','yyyy-mm-dd hh24:mi:ss')  and create_time>to_date('2009-08-16 14:00:00','yyyy-mm-dd hh24:mi:ss') 这个一个查询固定时间的语句,但我想使用方便一点是否有这样的语句:
1 查询当前时间和当前时间两个小时前这个时间段的sql
也就是说,假设当前时间是xx,
我想查询  xx-2小时   至   xx  这段时间的sql语句?