select * from TAB where 时间 BETWEEN to_date('2011-02-01 22:03:40','yyyy-mm-dd hh24:mi:ss') and to_date('2011-12-02 22:03:40','yyyy-mm-dd hh24:mi:ss')

或者:

 

select * from TAB where to_char(时间,'yyyy-MM-dd hh24:mi:ss') between '2011-02-01 22:03:40'and '2011-12-02 22:03:40' ;

posted on 2016-07-15 14:56  浮沉一梦  阅读(178)  评论(0编辑  收藏  举报