日期:2014-05-18 浏览次数:20526 次
SELECT * from PassRecords where PassDate BETWEEN '2012-02-07 00:00:00' and '2012-02-09 23:59:59';
SELECT *
from PassRecords
where PassDate
BETWEEN cast('2012-02-07 00:00:00' as datetime)
and cast('2012-02-09 23:59:59' as datetime);