SQL中如何选取指定时间段内的数据,比如说选取2000/6/25到2012/6/25内的数据,在线等
------解决方案--------------------
- SQL code
select * from table where time between convert(datetime,'2000/6/25') and convert(datetime,' 2012/6/25 ')
select * from table where time between convert(datetime,'2000/6/25') and convert(datetime,' 2012/6/25 ')