Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想比较时间并显示大于指定时间的记录。例如,在我的数据库中,我有一个字段“TimeDate”,我将日期和时间存储在一起。现在我想显示的记录只比这次“19/04/2012 2:34:27 PM”要大。无论如何我可以做到这一点。
我从这段代码开始。
Select * from Table where TimeDate > '19/04/2012 2:34:27 PM'.
首先数据类型是sql中的datetime,
您的示例代码是正确的。
对于您当前的查询,我确信 sql 足够智能。