有一张表里有个字段为合同合同生效日期~用的是日期控件
我想实现统计查询的功能, 我用了两个日期控件(A,B),FROM A TO B
分别选好了日期 如:2005-8-1 到2005-9-1
得到它们之间的相关记录 谢谢 !
select * froom yourtable where time between a.date and b.date
select * from yourtable where time between a.date and b.date
Select * From YourTable
Where 日期时间>=2005-8-1
and 日期时间<=2005-9-1