经验之谈:

情况一:没有查询结果

select * from t_Records where 1==1 and R_CheckInTime > '2015-7-12 18:47:00' and  R_CheckInTime < '2015-7-18 18:48:00'

情况二:得到正确结果

select * from t_Records where 1==1 and R_CheckInTime > '2015-07-12 18:47:00' and  R_CheckInTime < '2015-07-18 18:48:00'


注意:

    日期的格式化 是 DateTime.ToString("yyyy-MM-dd HH:mm:ss");

相关文章:

  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2021-07-19
  • 2021-11-18
  • 2021-12-27
猜你喜欢
  • 2022-12-23
  • 2021-11-03
  • 2021-06-02
  • 2022-12-23
  • 2021-08-04
  • 2021-05-03
相关资源
相似解决方案