请问一下怎么按时间查询access 啊

2025-12-17 13:16:19
推荐回答(3个)
回答1:

上一月(上月的今天至今天):
select * from art where [now] between dateadd("m",-1,now()) and now()
上一月(1号至最后一天):
select * from art where [now] between dateserial(year(now),month(now())-1,1) and dateserial(year(now),month(now()),1-1)

回答2:

select top 10 * from user order by nowtime desc

按nowtime 倒序显示最前面的10个用户. desc 倒序,即最新的在上面!

回答3:

up!!