Home > Database > Mysql Tutorial > access查询时间段的问题,大问题.

access查询时间段的问题,大问题.

WBOY
Release: 2016-06-07 15:43:52
Original
1215 people have browsed it

今天一个朋友问我access数据库 查询 某个 时间 段的数据应该怎么来查,我就随手写下了: SELECT* FROMtable_name where [date_name] between #time_a# and #"time_b# 结果 问题 来了, 查询 的结果始终不对,比如他 查询 2009-7-1至2009-7-17 时间 段之间的数据

今天一个朋友问我access数据库查询某个时间段的数据应该怎么来查,我就随手写下了:

SELECT * FROM table_name where [date_name] between #time_a# and #"time_b#

结果问题来了,查询的结果始终不对,比如他查询2009-7-1至2009-7-17时间段之间的数据的话数据中没有2009-7-17号的数据,怎么改也始终查不出,换成了>= 问题?access版本是2003的.

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