Home > Database > Mysql Tutorial > body text

怎样在Access中设置指定日期前的记录

WBOY
Release: 2016-06-07 14:54:38
Original
2518 people have browsed it

一起来学习看看吧: 我们虽然在Access中不能使用DateDiff函数,但可以使用日期函数来实现这一功能。看看下面这个庞大的示例,就是实现如何选择前8个包括今天及今天以前的日期的记录的语句: select TOP 3 * from mytable where ((YEAR(ndate) year(now)) o

  一起来学习看看吧:

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

  select TOP 3 * from mytable where ((YEAR(ndate)

  

  

  

Related labels:
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