SQL query by time in delphiaccess

Source: Internet
Author: User
Although the function of the Access database is poor, it is very convenient to save a small amount of data, as is true in delphi, when querying, you must use the date or time as the query condition. access is somewhat special. Select * fromtablewherestartime #2014-02-202: 12: 00 # note two points: 1. Date and Time

Although the function of the Access database is poor, it is very convenient to save a small amount of data, as is true in delphi, when querying, you must use the date or time as the query condition. access is somewhat special. Select * from table where startime #2014-02-20 2: 12: 00 # note two points: 1. Date and Time

Although the function of the Access database is poor, it is very convenient to save a small amount of data, as is true in delphi, when querying, you must use the date or time as the query condition. access is somewhat special.

Select * from table where startime> #2014-02-20 2: 12: 00 #

Note:

1. Add at both ends of date and time #

2. The delimiter colon in the middle of the time must be two consecutive characters, because in delphi, the colon represents a parameter, and the colon represents a non-parameter.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.