求查询本周,本月的所有记录
求查询本周,本月的所有记录
不是最近7天的
表名为t1
vb.net + access
[解决办法]
没测试 大概就这意思 你试试 改改
select * from t1 where datediff(w,时间字段,now()) 本周
select * from t1 where datediff(m,字段,now()) 本月
发布时间: 2012-01-30 21:15:58 作者: rapoo
求查询本周,本月的所有记录
求查询本周,本月的所有记录
不是最近7天的
表名为t1
vb.net + access
[解决办法]
没测试 大概就这意思 你试试 改改
select * from t1 where datediff(w,时间字段,now()) 本周
select * from t1 where datediff(m,字段,now()) 本月