当前位置:首页 > 数据库 > SQlite

在SQLite Expert上用日期类型字段作为条件查询时注意日期的格式化

* 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");

在SQLite Expert上用日期类型字段作为条件查询时注意日期的格式化

标签:

本文系统来源:http://www.cnblogs.com/wjshan0808/p/4644940.html


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!