日期:2014-05-18  浏览次数:20409 次

SQL中如何选取指定时间段内的数据
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 ')