ORACLE 日期段查询问题

我想从TEST 这个表里查询 time这个date类型的字段时间范围在2009-10-01 00:00:00到2009-10-05 00:00:00的所有记录,我该怎么在数据库里直接写SQL语句,谢谢大家了,我试了的,没有成功! :lol:
[b]问题补充:[/b]
谢谢大家的回答,我的输入select * from t_in_info where when_in_logged between to_date('2005-02-01 10:45:54','yyyy-MM-dd hh24:mi:ss') and to_date('2005-02-03 10:12:01','yyyy-MM-dd hh24:mi:ss') 。小弟在此谢过了!

[code="java"]select * from TEST where time between to_date('2009-10-01','yyyy-MM-dd') and to_date('2009-10-05 ','yyyy-MM-dd');[/code]

最简单,当作字符处理。
2009-10-01 < date and date > 2009-10-05
也可以当作日期处理。
to_date('2009-10-01') ...

[url=http://hsyd.iteye.com/blog/333971]http://hsyd.iteye.com/blog/333971[/url]

http://topic.csdn.net/u/20091010/15/3bd9b0f6-6832-4ee0-b016-96b58c5d6eaa.html