Home > Database > Mysql Tutorial > body text

如何 在Access中选择指定日期前的记录?

WBOY
Release: 2016-06-07 18:07:31
Original
1544 people have browsed it

如何 在Access中选择指定日期前的记录?

我知道,在Access中不能使用DateDiff,那么我们怎样才能选择指定日期前的若干记录呢?



虽然在Access中不能使用DateDiff函数,但我们可以使用日期函数来实现这一功能。看看下面这个“庞大”的示例,就是实现如何选择前8个包括今天及今天以前的日期的记录的语句:

select TOP 3 * from mytable where ((YEAR(ndate)
Related labels:
how
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template