当前位置:Gxlcms > 数据库问题 > 在SQLite Expert上用日期类型字段作为条件查询时注意日期的格式化

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

时间:2021-07-01 10:21:17 帮助过:3人阅读

* 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上用日期类型字段作为条件查询时注意日期的格式化

标签:

人气教程排行