我有一个日期时间列,我想过滤两个开始日期和结束日期参数。但是,如果 startd ate 和 end date 是相同的值,则不会返回任何行。
ua.actiondate < '2013-10-08' and ua.actiondate > '2013-10-08'
ua.actiondate between '2013-10-08' and '2013-10-08'
我的 actionDate 列的示例值
2013-10-08 12:30:17.000
2013-10-08 12:30:17.000
2013-10-08 12:31:56.000
2013-10-08 12:32:22.000
2013-10-08 12:35:35.000
2013-10-08 12:35:40.000
2013-10-08 12:35:40.000
2013-10-08 12:36:03.000
2013-10-08 12:36:44.000
2013-10-08 12:36:44.000
2013-10-08 12:36:54.000
如您所见,actionDate 列是日期时间对象,但参数只是日期。