简体   繁体   English

在MS Access 2013中使用SQL将日期与当前日期进行比较

[英]Compare Date with Current Date using SQL in MS Access 2013

I have a table in ms access 2013. It has a column name expirydate having date values. 我在ms Access 2013中有一个表。它具有具有日期值的列名称expirydate。 I need to write a query with the following condition expirydate is greater than current date. 我需要使用以下条件expirydate大于当前日期来编写查询。 Can anyone tell me how can i do this? 谁能告诉我该怎么做?

我假设您可以使用SQL查询:

SELECT * FROM table_name WHERE expirydate > Date()

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM