求: .net如何实现根据日期查询数据
如题- -3Q --------------------编程问答-------------------- 更改查询条件啊!把你输入的日期赋给查询语句的where条件。 --------------------编程问答-------------------- ....where 日期列<DateTime.Now --------------------编程问答-------------------- ......where time between xx and xx --------------------编程问答-------------------- between and
或者读出来 在前台筛选 --------------------编程问答-------------------- select * from tablename where time between 2011-08-28 and 2011-08-30 --------------------编程问答--------------------
直接加条件where --------------------编程问答-------------------- where time between ... and...
or
where time>=... and time <=... --------------------编程问答-------------------- 取两个日期 区间的数据就用 select * from table where 日期列 between 日期值 and 日期值 --------------------编程问答-------------------- LZ是不是只是简单的进行日期查询,要是只是这样的话,用between and 就可以了,如果还有别的,请再说明
补充:.NET技术 , ASP.NET