1.在时间段内查找数据
1.在时间段内查找数据
select * from c_news where eid=2 and dates between cast('2007-8-1' as datetime) and cast('2007-9-20' as datetime) 在这范围的数据全部取出(EID=2和时间在8-1到9-20) select * from c_
1.在时间段内查找数据
1.在时间段内查找数据
select * from c_news where eid=2 and dates between cast('2007-8-1' as datetime) and cast('2007-9-20' as datetime) 在这范围的数据全部取出(EID=2和时间在8-1到9-20) select * from c_